Print Page | Close Window

Skin Framework raising unhandled exception

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6060
Printed Date: 19 May 2024 at 4:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skin Framework raising unhandled exception
Posted By: petr12345
Subject: Skin Framework raising unhandled exception
Date 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



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net