![]() |
Exception when closing App |
Post Reply ![]() |
Author | |
sbinder ![]() Groupie ![]() ![]() Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() Posted: 22 November 2004 at 5:20am |
Hello,
we are currently evaluating your Toolkit Pro for our Applications. I only included XTPro Header in stdafx.h, and changed CMainFrame Base Class (and all occurances of FrameWnd) to "CXTFrameWnd". no use of any other XT Features atm. The app works normally, but when i close it, i get an exception in (or after) CMainFrame destructor. CallStack points here: mfc71d.dll!CPlex::FreeDataChain() + 0x1e C++ (Code: void CPlex::FreeDataChain() // free this one and links { CPlex* p = this; while (p != NULL) { BYTE* bytes = (BYTE*) p; --> CPlex* pNext = p->pNext; // Fails Here! delete[] bytes; p = pNext; } } This is from "output-window": An exception (first Chance) bei 0x7c22261e (mfc71d.dll) in lfpp32.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00017c14. Other components in use: Stingray Objective Grid Pro. from RogueWave, and CodeBase Database. both used as DLL. can you point me to possible Problems, as i dont have the source code, i cant go into more detail. Thanks, Stefan Binder Zeintlinger Systemtechnik |
|
![]() |
|
sbinder ![]() Groupie ![]() ![]() Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() |
we accidently downloaded The XTToolkit 4.10 Demo, not the XTToolkit Pro 9.51 Demo, which is the one we would buy.
With XTPro there are no problems like the one mentioned before. so no furhter help required. |
|
![]() |
|
haiku ![]() Newbie ![]() Joined: 30 November 2004 Location: Poland Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
I have just bought Xtreme Toolkit Pro v 9.51. And problem still exists. Exactly at the same place at "mfc71d.dll!CPlex::FreeDataChain() + 0x1e C++." So any help would be appreciated. Thank you. |
|
![]() |
|
haiku ![]() Newbie ![]() Joined: 30 November 2004 Location: Poland Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Problem solved! In my code I had: CXTPImageManager m_imageManager; CXTPShortcutBar m_wndShortcutBar; The problem is that m_wndShortcutBar uses the m_imageManager. The first variable is destructed first by class' destructor, what causes error in m_wndShortcutBar's destructor. By simple reordering the variables in class the problem is solved. Sorry for the created confusion. Best regards, Haiku.
|
|
![]() |
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 |