Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Crash in ExitInstance
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash in ExitInstance

 Post Reply Post Reply
Author
Message
Synapse View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Synapse Quote  Post ReplyReply Direct Link To This Post Topic: Crash in ExitInstance
    Posted: 17 December 2007 at 6:05am
Hi,
I use the SkinFramework to skin some dialog boxes in a dll. I load the skin in InitInstance. When the program exit, I have a crash in ExitInstance on the following instruction :
XTPSkinManager()->LoadSkin(NULL);
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 17 December 2007 at 1:24pm
Hi,
 
You have create skinframework in main application. Think SkinFramework skinned some controls from main app and you unload it before it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Synapse View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Synapse Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2007 at 3:35am
I use SetAutoApplyNewWindows(FALSE) in initInstance and ApplyWindow(GetSafeWnd()) in the dialog boxes I want to skin.
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2
Back to Top
Synapse View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Synapse Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2007 at 6:17am
I've traced it in debug mode, it crashes in LoadSkin(NULL), when calling pApiHook->FinalizeHookManagement();

My dll is called by a Word addin. So I load it at the Word startup and I unload it (and call LoadSkin(NULL)) at the shut down.
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 20 December 2007 at 12:32pm

Hi,

May be you can attach in issuetrack small prototype to show problem ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.219 seconds.