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

Skin Framework raising unhandled exception

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


Joined: 10 January 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote petr12345 Quote  Post ReplyReply Direct Link To This Post Topic: Skin Framework raising unhandled exception
    Posted: 10 January 2007 at 6:56am
Skin Framework produces unhandled exception (memory access violation) after switching to 256 colors in runtime
 
Operating system:
 Win2k SP4;
 or any other windows clone where you can switch display settings from HighColor to 256 color,
 or from TrueColor to 256 color
 
Compiler:
 Visual C++ 6.0 or VS2003 or VS2005 ( does not matter ).
 
Steps:
 1. Go to Windows Control Panel/ Display / Settings / Colors,
    make it HighColor ot True Color
 2. Run some program using CodeJock Skin Framework
    The project in
    $\Codejock Software\MFC\Xtreme ToolkitPro v10.4\Samples\SkinFramework\SkinControls
 is a good example.
 3. In the program switch to any theme different from "Default", for instance Luna Theme, Royal Theme, Vista Theme
 4. Go to Windows Control Panel/ Display / Settings / Colors,
    make it 256 Colors
 5. Now in the program switch to different theme ( it could be "Default" ).
    Result: unhandled exception ( program crash )

Thanks for any help,
Petr
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: 10 January 2007 at 9:51am
Yes, thanks. We will fix it for 10.4.1 release
 
 
 
patch CXTPSkinManager::LoadSkin:
 
BOOL CXTPSkinManager::LoadSkin(LPCTSTR lpszResourcePath, LPCTSTR lpszIniFileName)
{
 SAFE_DELETE(m_pSchema);
 CXTPSkinManagerApiHook* pApiHook = CXTPSkinManagerApiHook::GetInstance();
 pApiHook->FinalizeHookManagement();
 BOOL bEnabled = m_bEnabled;
 if (XTPColorManager()->IsLowResolution() ||
  !CXTPSkinManagerModuleList::IsEnumeratorExists() ||
  !ReadSkinData(lpszResourcePath, lpszIniFileName))
 {
....
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.152 seconds.