Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Crash inside CXTPPropertyGridItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash inside CXTPPropertyGridItem

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Crash inside CXTPPropertyGridItem
    Posted: 03 October 2007 at 6:57am
Hello,

one of our clients had a strange crash on an XP SP2:


The crashdump from client shows that the crash (0xc0000005) occurs inside GetAccessibleRole(), on the highlighted line, when an access to pvarRole is being made (assigning a value of zero through VT_EMPTY).

What can be the problem? Is it possible to fix this?
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2007 at 8:24am
The call stack shown by VS seems incorrect to me now. Obviously, MFC's CFrameWnd will never call any XTP method directly. Is it possible that crashdump files are interpreted incorrectly, thus we cannot trust the call stacks shown by Visual Studio?
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: 03 October 2007 at 1:53pm
Hello,
 
Crush dump for Release build can be wrong. If he can reproduce it each time, may be you send Debug version to customer to check it ?
for future we will add check if pVarRole != NULL before set it. but actually it have be non Null always. May be he can write what he did to reproduce this crush ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2007 at 9:03am
Yes, too bad that he cannot reproduce it with a well-known procedure. It just crashes with the same callstack from time to time.

Can you please explain shortly what is GetAccessibleRole() used for in XTP?
Thank you, in advance!
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: 17 October 2007 at 10:23am
Hi,
 
add in first line of CXTPPropertyGridItem::GetAccessibleRole
 
 if (!pvarRole)
  return E_INVALIDARG;
 
and please send him to test.
Think you can send him Debug version to make better call stack.
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.172 seconds.