Print Page | Close Window

GPF in AfxDeactivateActCtx

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=8745
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GPF in AfxDeactivateActCtx
Posted By: MacW
Subject: GPF in AfxDeactivateActCtx
Date Posted: 10 November 2007 at 12:48pm
Hi,

I'm using the latest CodeJock Pro Debug Unicode build.
When I open an CXTColorDialog, I get a

First-chance exception at 0x773d78f1 in im5ui4.exe: 0xC0000005: Access violation writing location 0x01bd6c6c.

in the above function. I think I recall a similar problem with an earlier XTP version, but this was fixed in the intermediate versions. Seems that this bug now shows up again?



Replies:
Posted By: Oleg
Date Posted: 12 November 2007 at 1:03am

Hi,

I sure you just link old dll using new headers.
Uninstall all previous versions and totally rebuild your application. be sure you link with last dll.


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


Posted By: MacW
Date Posted: 12 November 2007 at 12:45pm
Hi, Oleg

I have installed XTP 1121 fresh, into a new folder. I complied the shared libraries (with the "Treat wchar_t as built-in type" set of No). I have only one copy of the lib and the DLL on my system, and my app loads the DLL from the correct location.

The problem still happens, whenever I open the CXTColorDialog for the first time from the OnInplaceButtonDown handler of a XTPpropertyGrid.

ny other idea I can try?


Posted By: Oleg
Date Posted: 13 November 2007 at 11:19am

Hi,

Oh, right, I forgot about this 0xC0000005. its old known problem of comctrl32.dll. You can open any PropetySheet and will see same First-chance exception.
Here details - http://support.microsoft.com/kb/158552/en-us - http://support.microsoft.com/kb/158552/en-us

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


Posted By: MacW
Date Posted: 13 November 2007 at 6:55pm
Hi, Oleg

thanks. This explains it. Or, as Microsoft would put it:

"This GPF is by design"

Thanks for your support.



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