![]() |
assert in wincore.cpp line 3117 |
Post Reply ![]() |
Author | |
msamocha ![]() Newbie ![]() ![]() Joined: 07 March 2004 Location: Israel Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() Posted: 24 October 2004 at 11:48am |
Hi, I wrote a little function to restore the command bars layout to their default like this: LoadCommandBars(_T("DefaultCommandBars")); It works fine and all toolbars get to their default position but if the users uses it to restore the toolbars position and then exits the program, I get an assertion in wincore.cpp line 3117 : BOOL PASCAL CWnd::WalkPreTranslateTree(HWND hWndStop, MSG* pMsg) { ASSERT(hWndStop == NULL || ::IsWindow(hWndStop)); <...> apparently hWndStop (the Main Window Handle) is no longer a window, and ::IsWindow(hWndStop); fails... and asserts when the app is closed... BTW if my reset function docks a floating toolbar A and then I re-float toolbar A manually everything is Ok. ie there is only a problem if my function docks a floating toolbar and the user keeps it docked and the closes the app...
Any ideas why this is so or how to prevent this?
<..BOOL PASCAL CWnd::WalkPreTranslateTree(HWND hWndStop, MSG* pMsg) { ASSERT(hWndStop == NULL || ::IsWindow(hWndStop)); ds |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |