Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPPaintManager problem with ActiveX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPaintManager problem with ActiveX

 Post Reply Post Reply
Author
Message
kram617 View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote kram617 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPaintManager problem with ActiveX
    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?
 
Back to Top
kram617 View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote kram617 Quote  Post ReplyReply Direct Link To This Post 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.
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.109 seconds.