![]() |
Crash in XTPCommandBars |
Post Reply
|
| Author | |
jfblier
Newbie
Joined: 29 March 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Crash in XTPCommandBarsPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
jfblier
Newbie
Joined: 29 March 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 March 2006 at 11:58am |
|
Thanks. It solved my problem.
|
|
![]() |
|
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 |