Print Page | Close Window

Bug in Codejock

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=15263
Printed Date: 27 September 2024 at 10:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in Codejock
Posted By: no_spam
Subject: Bug in Codejock
Date Posted: 29 September 2009 at 10:26am

Hi

I got the following error sometimes when the app exits. Please help.

Thanks,
Peter

(9e8.12a4): Access violation - code c0000005 (!!! second chance !!!)
eax=720e0014 ebx=720e0000 ecx=720e0000 edx=00000000 esi=0031f4b4 edi=0031f660
eip=76394cbc esp=0031f47c ebp=0031f480 iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
imagehlp!ImageDirectoryEntryToDataEx+0x3d:
76394cbc 0fb710          movzx   edx,word ptr [eax]       ds:0023:720e0014=????
0:000> ~*kb
.  0  Id: 9e8.12a4 Suspend: 1 Teb: 7ffdf000 Unfrozen
ChildEBP RetAddr  Args to Child
0031f480 76394c89 720e0000 00000001 00000001 imagehlp!ImageDirectoryEntryToDataEx+0x3d
0031f49c 0138611d 720e0000 00000001 00000001 imagehlp!ImageDirectoryEntryToData+0x18
0031f670 01385f6a 022f7194 00d97f1e 762d361f uiapp!CXTPSkinManagerApiFunction::ReplaceInOneModule+0x8d
0031f9b8 01385e29 022f7194 00d97f1e 762d361f uiapp!CXTPSkinManagerApiFunction::ReplaceInAllModules+0xea
0031faa4 01385356 0031fc98 00000000 7ffd5000 uiapp!CXTPSkinManagerApiFunction::UnhookImport+0x49
0031fbb8 01386bd9 0031fd7c 00000000 7ffd5000 uiapp!CXTPSkinManagerApiHook::UnhookAllFunctions+0x56
0031fc98 01384dea 98fde49f 0031fe5c 00000000 uiapp!CXTPSkinManagerApiHook::FinalizeHookManagement+0x39
0031fd88 014fc508 00000000 00000000 7ffd5000 uiapp!CXTPSkinManagerApiHook::~CXTPSkinManagerApiHook+0x5a
0031fe5c 012ed3fa 98fde7bf 00000000 00000000 uiapp!`dynamic atexit destructor for 'init_atexit''+0x188
0031fea8 012ed092 00000000 00000000 00000000 uiapp!doexit+0x10a
0031febc 012d99b7 00000000 98fde643 00000000 uiapp!exit+0x12
0031ff54 012d982f 0031ff68 762f4911 7ffd5000 uiapp!__tmainCRTStartup+0x177
0031ff5c 762f4911 7ffd5000 0031ffa8 7728e4b6 uiapp!wWinMainCRTStartup+0xf
0031ff68 7728e4b6 7ffd5000 06c4b6b3 00000000 kernel32!BaseThreadInitThunk+0xe
0031ffa8 7728e489 00d78925 7ffd5000 00000000 ntdll!__RtlUserThreadStart+0x23
0031ffc0 00000000 00d78925 7ffd5000 00000000 ntdll!_RtlUserThreadStart+0x1b
0:000> r
eax=720e0014 ebx=720e0000 ecx=720e0000 edx=00000000 esi=0031f4b4 edi=0031f660
eip=76394cbc esp=0031f47c ebp=0031f480 iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
imagehlp!ImageDirectoryEntryToDataEx+0x3d:
76394cbc 0fb710          movzx   edx,word ptr [eax]       ds:0023:720e0014=????




Replies:
Posted By: znakeeye
Date Posted: 30 September 2009 at 8:49am
try maually call RemoveAll() in some ExitInstance of your applcation. and maybe LoadSkin(0, 0);


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: rsvihalek
Date Posted: 23 February 2010 at 5:04am
I've got similar issue: crashes on application exit. I am able to reproduced the bug under the Windows Server OS lets say in 1 time from 5.
On workstation operating systems I am unable to reproduce it. Any other sugestion? I've tried to call both methods without success.
I do not want to remove skin framework but I have to do that when the will not be solved.

-------------
Product: Xtreme ToolkitPro v13.3.0
Platform: Windows 7 (64bit) - SP 2
Language: Visual C++ 9.0

http://www.ActivityMon.com - www.ActivityMon.com
The Ultimate Monitoring Solution


Posted By: znakeeye
Date Posted: 23 February 2010 at 10:58am
Does it occur when you're NOT debugging? That is, you hit Ctrl+F5 instead of F5.

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: rsvihalek
Date Posted: 23 February 2010 at 11:04am
It occurs in the release build, no running debuger.

-------------
Product: Xtreme ToolkitPro v13.3.0
Platform: Windows 7 (64bit) - SP 2
Language: Visual C++ 9.0

http://www.ActivityMon.com - www.ActivityMon.com
The Ultimate Monitoring Solution


Posted By: znakeeye
Date Posted: 27 February 2010 at 7:57am
Try removing certain DLLs/OCXs from being skinned, and see if the problem goes away. E.g.: XTPSkinManager()->ExcludeModule("somecomponent.dll");
 
I suspect that one of your components contains some incompatible type of optimization. It could be your exe too. Try disabling optimizations and see if the problem persists, then re-enable one optimization at a time and see which one is the culprit. Especially, be careful with the "Omit frame pointer" optimization.
 
You might also want to enable debug symbols in your release build. Take a look at this tutorial: http://www.codeproject.com/KB/debug/survivereleasever.aspx - http://www.codeproject.com/KB/debug/survivereleasever.aspx


-------------
PokerMemento - http://www.pokermemento.com/



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