Print Page | Close Window

XTP 12.0 crash

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10648
Printed Date: 03 July 2024 at 5:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP 12.0 crash
Posted By: saruth
Subject: XTP 12.0 crash
Date 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



Replies:
Posted By: mgampi
Date Posted: 16 May 2008 at 6:29am
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


Posted By: saruth
Date Posted: 16 May 2008 at 6:41pm
Hi mgampi,
 
Right now the application do not crash in debug mode.
I hope the XTP team can solve this quickly.
 
Regards
 


Posted By: mgampi
Date Posted: 16 May 2008 at 9:22pm
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


Posted By: znakeeye
Date Posted: 17 May 2008 at 4:51am
Try turning off optimizations. Does that help?


Posted By: saruth
Date Posted: 20 May 2008 at 9:55am
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
 
 
 
 

 


Posted By: Oleg
Date Posted: 20 May 2008 at 10:27am
Hello,
 
You can call ClearAllItems() in some CMainFrame::OnDestroy method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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