Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Crash in XTPCommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash in XTPCommandBars

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


Joined: 29 March 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jfblier Quote  Post ReplyReply Direct Link To This Post Topic: Crash in XTPCommandBars
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jfblier View Drop Down
Newbie
Newbie


Joined: 29 March 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jfblier Quote  Post ReplyReply Direct Link To This Post 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);

 

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.047 seconds.