Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - assert in wincore.cpp line 3117
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

assert in wincore.cpp line 3117

 Post Reply Post Reply
Author
Message
msamocha View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2004
Location: Israel
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote msamocha Quote  Post ReplyReply Direct Link To This Post Topic: assert in wincore.cpp line 3117
    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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.