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

GPF in XTPSkinManagerApiHook::HackModuleOnLoad

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: GPF in XTPSkinManagerApiHook::HackModuleOnLoad
    Posted: 09 August 2007 at 7:48am
I get a GPF in XTPSkinManagerApiHook::HackModuleOnLoad while calling a function via a function pointer retrieved from a DLL loaded via LoadLibrary.

This external plug-in is not linked with XTP, and has no reference.
In my main application, I initialize XTP Skin Manager as follows:


    XTPSkinManager()->EnableCurrentThread();   
    XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);
    XTPSkinManager()->SetAutoApplyNewThreads(FALSE);



Since the XTP documentation does not contain anything about when and how to use these functions, I copied it from a sample application.

For example, the "documentation" for EnableCurrentThread says:

Call this method for each thread in multi threaded application to enable skin framework for all threads

What does this mean?


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: 10 August 2007 at 12:54am
Hello,
 
Please show call stack.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2007 at 9:28am
Hi,

I think this was fixed already. I've downloaded the most recent XTP version, compiled everything new on my machine, and the crash does not show up anymore. I have seen the ESP warning a couple of times, but it does not crash anymore.

I'll try to keep the call stack for you when it happens the next time. Problem is that when this happens about 10 threads are active...
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.063 seconds.