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

Skinframework crashing

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


Joined: 15 August 2007
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote aggressor Quote  Post ReplyReply Direct Link To This Post Topic: Skinframework crashing
    Posted: 10 November 2008 at 1:56pm
Hi,

We have a very strange Access Violation in the SkinFramework. We need to disable the skining for some time. The only one way that we found to do this is to set SetApllyOptions(0). But then we are calling the thing it's giving access violation. The stack is pointing to dbghlp.dll. We removed the linking to our Dbghelp.dll. But AV still happening, but now call stack is pointing somewhere in the imagehlp.dll.

What it can be?

Thank you.
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2008 at 5:18pm
Disable AutoApplyNewThreads or so, crashed here also always.

Codejock support
Back to Top
aggressor View Drop Down
Groupie
Groupie


Joined: 15 August 2007
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote aggressor Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2008 at 11:59am
Hi guys,

So what we can do with it? Giving you an example: 3rd party DLL has a TStatusBar control so we need to disable the skin totally. Disabling AutoApplyThreads and AutoApplyWindows not helping for some controls. So what we can do?
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: 11 November 2008 at 3:33pm
Hi,
try to disable skinning for all TStatusBar  classes with
 
XTPSkinManager()->GetClassMap()->AddClass(_T("TStatusBar"), new CXTPSkinObjectClassInfo(NULL));
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
aggressor View Drop Down
Groupie
Groupie


Joined: 15 August 2007
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote aggressor Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2008 at 1:51pm
Hi,

There are plenty of Delphi controls there. It will be very hard to maintain the thing correctly on each release. Can you try to replicate the thing?

Thank you.
Back to Top
aggressor View Drop Down
Groupie
Groupie


Joined: 15 August 2007
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote aggressor Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2008 at 1:54pm
Just call SetApplyOptions(0) before any new dialog instance in the Main Frame. We also have the same thing for standart Win32 OpenDialog. If we call SetApplyOptions(0) before OpenDialog we have a crash. But if we do it after first call to OpenDialog all okay :).
Back to Top
birinets View Drop Down
Newbie
Newbie


Joined: 09 April 2008
Location: Ukraine
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote birinets Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2008 at 7:24am
HI all,

I have the same problem, I'm getting same Access Violations, using this methods. Do we have a solution?
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.188 seconds.