Critical bug since v12 |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 07 February 2009 at 4:15am |
Upgraded from 11.2.2 (or maybe 12.0.1, not sure) to 12.1.1. In my application I transfer panes the way we discussed here:
It worked before, but now I get a crash:
DWORD CCmdTarget::InternalRelease()
{
ASSERT(GetInterfaceMap() != NULL);
...
}
And the reason is that m_pVirtualRow == 0x0000001 at line 79 in XTPReportRows.cpp. I'm not using virtual mode, so I really don't understand how this can happen!
Just to clarify:
I disable/hide a pane in my main frame and attach it to another frame. Changing the owner etc.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Sorry I don't see how we can reproduce it :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I'll try make a sample next week.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Ok, I found the problem. It's probably my own fault, but just to be sure I'll describe what happens.
1) I right-click in one of my panes P (with child window W) and call the blocking function CXTPCommandBars::TrackPopupMenu. The address of some local variables are set using SetTag().
2) I select item X which has a tag.
3) The message is handled in CWinApp, and the tag is used to make some decisions. Then, before P is transfered to another CFrameWnd, a call is made which sets a member variable of W is made. All this call does is setting a boolean member to true.
Setting this member somehow blows the stack. ~CCmdTarget yields a crash (m_pVirtualRow == 0x01). This seems to only happen in Vista! (Memory protection?)
The question is; is this a fault on my side, or could there be a flaw XTP? I track the menu using site=GetTopLevelFrame().
Let me summarize the sequence:
Track popup menu in pane window, handle message and modify pane-member, transfer pane to another pane manager.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Sorry, but I sure its your code.
|
|
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 |