Print Page | Close Window

crash on skin load

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=9600
Printed Date: 23 November 2024 at 8:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: crash on skin load
Posted By: souren
Subject: crash on skin load
Date Posted: 16 February 2008 at 4:26am
Occasionally I have exception when starting my dialog base application with embedded styles.

Unhandled exception at 0x007477c6 in ClientNew.exe: 0xC0000005: Access violation writing location 0x76ee1254.

This is where exception thrown
xtpskinmanagerapihook.cpp
                    // Hook the function.
                    *ppfn = *pfnNew;

I'm using the following code in InitInstance
 XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, _T("NORMALROYALE.INI"));

Additionally I tried to load .cjstyles file instead of using embedded style. It is crashing after couple launches on the same place.



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