Print Page | Close Window

Crash inside CXTPPropertyGridItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=8275
Printed Date: 22 November 2024 at 1:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash inside CXTPPropertyGridItem
Posted By: akur
Subject: Crash inside CXTPPropertyGridItem
Date 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?



Replies:
Posted By: akur
Date 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?


Posted By: Oleg
Date 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


Posted By: akur
Date 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!


Posted By: Oleg
Date 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



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