![]() |
CXTPPaintManager problem with ActiveX |
Post Reply ![]() |
Author | |
kram617 ![]() Newbie ![]() Joined: 24 February 2006 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
kram617 ![]() Newbie ![]() Joined: 24 February 2006 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |