Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTP 12.0 crash
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTP 12.0 crash

 Post Reply Post Reply
Author
Message
saruth View Drop Down
Newbie
Newbie


Joined: 09 October 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote saruth Quote  Post ReplyReply Direct Link To This Post Topic: XTP 12.0 crash
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
saruth View Drop Down
Newbie
Newbie


Joined: 09 October 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote saruth Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2008 at 4:51am
Try turning off optimizations. Does that help?
Back to Top
saruth View Drop Down
Newbie
Newbie


Joined: 09 October 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote saruth Quote  Post ReplyReply Direct Link To This Post 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
 
 
 
 

 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2008 at 10:27am
Hello,
 
You can call ClearAllItems() in some CMainFrame::OnDestroy method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.