Skin Framework raising unhandled exception |
Post Reply |
Author | |
petr12345
Newbie Joined: 10 January 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |