Print Page | Close Window

Crash in XTPCommandBars

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=3905
Printed Date: 13 July 2025 at 6:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash in XTPCommandBars
Posted By: jfblier
Subject: Crash in XTPCommandBars
Date Posted: 29 March 2006 at 7:46am

Hi,

I have a DLL that is used in a application. In the DLL I have created a CXTPFrameWnd derived class and added panes, toolbar and a menu. It works fine until I try to resize the application it crashes or when the screen saver appear. In the debugger, it crashes in the XTPCommandBars.cpp in the OnFramWndMsg method in the

if ( message == WM_SETTINGCHANGE ) 

    GetPaintManager()->RefreshMetrics();

Is somebody have hints?

Thanks




Replies:
Posted By: Oleg
Date Posted: 29 March 2006 at 9:32am

I guess:

XTPPaintManager declared as singetone, but thtere are two instances presented in dll and in exe...

Don't use XTPPaintManager() call at all, set PaintManager directly:

pCommandBars->SetPaintManager(new CXTPOffice2003Theme);

 



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


Posted By: jfblier
Date Posted: 29 March 2006 at 11:58am

Thanks. It solved my problem.

Originally posted by oleg oleg wrote:

I guess:

XTPPaintManager declared as singetone, but thtere are two instances presented in dll and in exe...

Don't use XTPPaintManager() call at all, set PaintManager directly:

pCommandBars->SetPaintManager(new CXTPOffice2003Theme);

 




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