Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Critical bug since v12
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Critical bug since v12

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Critical bug since v12
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2009 at 1:23pm
Hi,
Sorry I don't see how we can reproduce it :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2009 at 3:53pm
I'll try make a sample next week.
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 4:09am
Hi,
 
Sorry, but I sure its your code.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.140 seconds.