Print Page | Close Window

CXTPPaintManager problem with ActiveX

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6679
Printed Date: 06 October 2024 at 5:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPaintManager problem with ActiveX
Posted By: kram617
Subject: CXTPPaintManager problem with ActiveX
Date Posted: 20 March 2007 at 8:04am
Hello, I have an ActiveX control that contains a CXTPDialog with a CXTPToolBar.  I am seeing a problem when using this Active control inside  an application that also uses Codejock controls.  The application will always crash upon closing.  Here is the call stack:
 
MFC42D! 5f4911bb()
MFC42D! 5f4904e9()
MFC42D! 5f4902c7()
MFC42D! 5f4408f7()
MFC42D! 5f440ab7()
MFC42D! 5f440afc()
MFC42D! 5f47c0de()
MFC42D! 5f47c581()
CXTPPaintManager::~CXTPPaintManager() line 134 + 11 bytes
XTPPaintThemes::CXTPOfficeTheme::~CXTPOfficeTheme() + 37 bytes
XTPPaintThemes::CXTPOfficeTheme::`vector deleting destructor'(unsigned int 1) + 106 bytes
MFC42D! 5f437d47()
CCmdTarget::InternalRelease() line 223
CXTPPaintManager::Done() line 201
CXTPPaintManager::CXTPPaintManagerDestructor::~CXTPPaintManagerDestructor() line 57
$E344() + 34 bytes
XTP9700LIBD! 00a4949e() line 236
XTP9700LIBD! 00a4958b() line 289 + 17 bytes
NTDLL! 7c9011a7()
NTDLL! 7c923f31()
KERNEL32! 7c81cd76()
KERNEL32! 7c81cdee()
doexit(int 0, int 0, int 0) line 392
exit(int 0) line 279 + 13 bytes
MYSAMPLEAPP! WinMainCRTStartup line 345
KERNEL32! 7c816fd7()
 
I call CXTPPaintManager::SetTheme(xtpThemeOfficeXP) in both the application and ActiveX control.  Does this have something to do with the problem?
 



Replies:
Posted By: kram617
Date Posted: 20 March 2007 at 10:45am
Okay, I see the problem.
 
The ActiveX control by default uses the parent application's CXTPPaintManager.  When I create a brand new CXTPPaintManager object, everything works.



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