Print Page | Close Window

Critical bug since v12

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13355
Printed Date: 23 December 2024 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Critical bug since v12
Posted By: znakeeye
Subject: Critical bug since v12
Date 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:
http://forum.codejock.com/forum_posts.asp?TID=11590 - http://forum.codejock.com/forum_posts.asp?TID=11590
 
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/



Replies:
Posted By: Oleg
Date Posted: 08 February 2009 at 1:23pm
Hi,
Sorry I don't see how we can reproduce it :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 08 February 2009 at 3:53pm
I'll try make a sample next week.

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 10 February 2009 at 3:38am
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/


Posted By: Oleg
Date Posted: 10 February 2009 at 4:09am
Hi,
 
Sorry, but I sure its your code.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net