![]() |
XTP 12.0 crash |
Post Reply ![]() |
Author | |
saruth ![]() Newbie ![]() Joined: 09 October 2006 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 16 May 2008 at 4:35am |
Hi All,
I just update from XTP 11.2.2 to XTP 12.0.
The program crash when exit with XTP12.0 and never happened with the previous version.
Someone has the same problem ?
Crash screen .
Tanks in Advance
Saruth
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1198 |
![]() ![]() ![]() ![]() ![]() |
Hi;
what happens when you run the app in debug mode?
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
![]() |
|
saruth ![]() Newbie ![]() Joined: 09 October 2006 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Hi mgampi,
Right now the application do not crash in debug mode.
I hope the XTP team can solve this quickly.
Regards
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1198 |
![]() ![]() ![]() ![]() ![]() |
Hi;
Did you perform a complete rebuild of the whole app in release mode. Sometimes this helped after upgrading the toolkit.
Perhaps you should enable debug in release build (create .pdb file). In this case you are able to locate the crash in source code (don't forget the toolkit too).
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Try turning off optimizations. Does that help?
|
|
![]() |
|
saruth ![]() Newbie ![]() Joined: 09 October 2006 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I think the class that cause crash is CXTExcelTabCtrl.
The function is : _DeleteItem(int nItem) use to Cleanup by CXTExcelTabCtrl::ClearAllItems()
BOOL CXTExcelTabCtrl::_DeleteItem(int nItem)
{ const int cItems = (int)m_tcbItems.GetSize();
if (nItem < 0 || nItem >= cItems) return FALSE; // 20/05/08 :FIX: crash problem
#if 0 // Remove the item from the string arrays. CWnd *pWndControl = m_tcbItems[nItem]->pWnd; if (::IsWindow(pWndControl->GetSafeHwnd())) { pWndControl->ShowWindow(SW_HIDE); pWndControl->SetParent(NULL); } #endif SAFE_DELETE(m_tcbItems[nItem]); m_tcbItems.RemoveAt(nItem); if (m_tcbItems.GetSize() == 0) { m_bManagingViews = false; } return TRUE; } void CXTExcelTabCtrl::ClearAllItems()
{ while (_DeleteItem(0)) { }; } CXTExcelTabCtrl::~CXTExcelTabCtrl()
{ // Cleanup ClearAllItems(); FreeButtonIcons(); } Now when in comment a piece of code below,
the crash probkel is not happend again. // 20/05/08 :FIX: crash problem
#if 0 // Remove the item from the string arrays. CWnd *pWndControl = m_tcbItems[nItem]->pWnd; if (::IsWindow(pWndControl->GetSafeHwnd())) { pWndControl->ShowWindow(SW_HIDE); pWndControl->SetParent(NULL); } #endif I hope that the XTP team can clear this soon.
Regards
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
You can call ClearAllItems() in some CMainFrame::OnDestroy method.
|
|
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 |