![]() |
DockingPane wincore assertion |
Post Reply ![]() |
Author | |
Paolo ![]() Newbie ![]() Joined: 02 March 2006 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 27 November 2008 at 8:19am |
I Created a Dialog and attached it to a DockingPane.
When I show that pane I get a false assertion in wincore.cpp. This happens in debug version. When I show that pane in the release version my application crashes. I have no idea of what could be wrong, looking at methods name I feel that is something related to parent pointer, but it's just a feeling. Here's my call stack: - mfc90d.dll!CWnd::AssertValid() Row 900 + 0x19 byte C++ - mfc90d.dll!AfxAssertValidObject(const CObject * pOb=0x0859fe40, const char * lpszFileName=0x643dd0cc, int nLine=399) Row 107 C++ - mfc90d.dll!CCmdTarget::GetIDispatch(int bAddRef=1) Row 400 C++ - ToolkitPro1200vc90D.dll!CXTPDockingPane::GetAccessibleParent(IDispatch * * ppdispParent=0x0c008b58) Row 408 + 0x3d byte C++ - ToolkitPro1200vc90D.dll!CXTPAccessible::XAccessible::get_accParent(IDispatch * * ppdispParent=0x0c008b58) Row 621 + 0x13 byte C++ and here I copied these methods code (call stack line of each method is highlighted by "// this is the row")
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Do you see it with some our sample ? ActivePaneView also has attached dialog - please check it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Paolo ![]() Newbie ![]() Joined: 02 March 2006 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
I checked ActivePaneView sample as you suggested. There's code to create a pane and to attach a dialog to it. But I can't find any way to show that pane.
In my application the debug assertion is displayed only after I've shown the pane attached to the dialog. Methods - CWnd::AssertValid - AfxAssertValidObject - CCmdTarget::GetIDispatch are called on a "CXTPDockingPaneTabbedContainer" instance. As a note: in CCmdTarget::GetIDispatch the failing instruction is ASSERT_VALID(this); (in my previous post I pointed a row below) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Create demo project, reproduce problem and attach here. With this stack I have no idea what actually you do.
Or better just follow our samples.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |