![]() |
OnOpenDocument() returns false -> assert failed. |
Post Reply
|
| Author | |
CoeneW
Newbie
Joined: 13 June 2007 Location: Netherlands Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: OnOpenDocument() returns false -> assert failed.Posted: 13 June 2007 at 8:21am |
|
Hi,
I've reached a bit of a dead end, and am hoping someone where can maybe shine some light on what I'm doing wrong. This concerns an MDI application written in C++ using Visual Studio 2003, MFC and Xtreme Toolkit Pro (version 4.2). Whenever OnOpenDocument() on my CDocument-deriviative returns FALSE, an assertion failure is triggered in CXTPMenuBar::GetActiveMdiChildWnd(): "hWnd == NULL || ::IsWindow(hWnd)". The relevant bit of the call stack is as follows:
What looks really strange to me is the fact that the hWnd that is tested for being a proper window in CXTPMenuBar::GetActiveMdiChildWnd() is the result of a WM_MDIGETACTIVE message to the MDI area, so it's as if Windows itself is returning a window handle that isn't even a proper window! Anybody here have any ideas? Thanks, Wouter |
|
![]() |
|
CoeneW
Newbie
Joined: 13 June 2007 Location: Netherlands Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2007 at 9:18am |
|
Never mind, I've solved the issue. This is caused by my own view's OnCreate() doing a SetActiveView() on its parent frame (who would've thought).
|
|
![]() |
|
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 |