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

Skin Framework crashing

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


Joined: 15 January 2012
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redserpent7 Quote  Post ReplyReply Direct Link To This Post Topic: Skin Framework crashing
    Posted: 04 April 2012 at 9:27am
Hi

I am a developer at Genie9. recently we have release GenieTimeline 2012 which use CodeJock's SkinFramework version (15.2.1).

We received issues from our customers stating that the application's UI was not showing. After some investigation we discovered that in the Windows Event Viewer there were several crash reports indicating that our main application (GenieTimeline.exe) has crashed and the faulting module was (WRusr.dll). 

Further investigation revealed that the dll is part of an Anti-Virus software called WebRoot and when debugging our application we discovered that XTPSkinFramework was crashing..

The crash occurs in "XTPSkinManagerApiHook.cpp" on line 517 ::VirtualProtect(mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &dwOldProtect);

We think that WebRoot is using CodeJock's SkinFramework and in some way its conflicting with our product. calling XTPSkinManager()->ExcludeModule(_T("WRusr.dll")); does solve the problem, however, we aren't sure if there are other DLL's that might cause the same problem.

Currently this is the code we are using to initialize and load our skin:

DWORD dwOptions = XTPSkinManager()->GetApplyOptions();
dwOptions &=~xtpSkinApplyMenus;
dwOptions &=~xtpSkinApplyMetrics;
XTPSkinManager()->ExcludeModule(_T("WRusr.dll")); <-- Added to resolve the issue temporarily 
XTPSkinManager()->SetApplyOptions(dwOptions);
XTPSkinManager()->SetAutoApplyNewWindows(FALSE);
XTPSkinManager()->LoadSkin(stStylePath, _T("GenieBlackNoTitle.ini")); <-- This is where its crashing
XTPSkinManager()->SetAutoApplyNewWindows(TRUE);

The skin is loaded in the application main dialog constructor.

Where stStylePath is the path of our skin. we are not sure why SkinFramework is trying to ApiHook from different dlls and projects. And its not feasible to call ExcludeModule whenever a problem with a cretain DLL arise.

We would like to know if there is an optimal solution for this. Something that can enable XTPSkinManager to work only within our product environment and not try to hook to other Dlls.

The case is very common and any one can try it by installing Genie Timeline 2012 from here.
And installing WebRoot SecureAnywhere from here

Regards
Product: Xtreme Skin Framework 2011 (15.2.1)
Platform: Windows 7 (64bit)
Language: VC++ (Visual Studio 2010 SP1)
Back to Top
redserpent7 View Drop Down
Newbie
Newbie


Joined: 15 January 2012
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redserpent7 Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2012 at 4:05am
Can someone please give a solution or a remark on this... I don't think its uncommon..
Product: Xtreme Skin Framework 2011 (15.2.1)
Platform: Windows 7 (64bit)
Language: VC++ (Visual Studio 2010 SP1)
Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2013 at 2:40am

Thanks a lot for posting a solution for the WRusr.dll problem. I will implement it in my app.

I am still looking for the root cause of this problem. Whether it is a bug in CodeJock? Whether this was fixed in recent CodeJock update, Is it a problem with WebRoot or what?

Regards,
Gautam Jain
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.156 seconds.