Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Add an Anchor to a slider causes a crash. Collapse All
Subject Author Date
Sebastian Leopold Aug 25, 2010 - 2:35 AM

Hello,
I have a Dialog (CExtResizableDialog) wich is contained in a CExtControlBar. The Dialog contains a vertical slider. If I add an Anchor like the following to it:

AddAnchor(IDC_SLIDER_HEIGHTANGLE, CPoint(0,0), CPoint(0, 100));

The application crashes with an assertion.

regards
Sebastian

Technical Support Aug 25, 2010 - 9:56 AM

The AddAnchor() method can generate assertion if there is no dialog control with the IDC_SLIDER_HEIGHTANGLE identifier on your dialog template resource. But this assertion should not cause any crashes. Your dialog should run again. Could you please provide us with the call stack listing?