Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem after update from 9.7 to 10.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem after update from 9.7 to 10.2

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


Joined: 22 April 2004
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerry2000 Quote  Post ReplyReply Direct Link To This Post Topic: Problem after update from 9.7 to 10.2
    Posted: 04 July 2006 at 8:37am
The application chrashes during the exit process. The exception is thrown in the bold marked line:

void CThreadSlotData::FreeSlot(int nSlot)
{
    EnterCriticalSection(&m_sect);
    ASSERT(nSlot != 0 && nSlot < m_nMax);
    ASSERT(m_pSlotData != NULL);
    ASSERT(m_pSlotData[nSlot].dwFlags & SLOT_USED);
    if( nSlot <= 0 || nSlot >= m_nMax ) // check for retail builds.
        return;

    // delete the data from all threads/processes
    CThreadData* pData = m_list;
    while (pData != NULL)
    {
        if (nSlot < pData->nCount)
        {
            delete (CNoTrackObject*)pData->pData[nSlot];
            pData->pData[nSlot] = NULL;
        }  
        pData = pData->pNext;
......


The error occurs only when the application is exited immediately after the start. Only a double click in a list box is done. This click opens a second frame window. When i open the second frame window with a menu entry, there is no problem!

Here the call stack


mfc80ud.dll!CThreadSlotData::FreeSlot(int nSlot=0x00000008)  Line 231 + 0x25 bytes    C++
mfc80ud.dll!CThreadLocalObject::~CThreadLocalObject()  Line 446    C++
ToolkitPro1020vc80UD.dll!CThreadLocal<CXTPMouseManager>::~CThreadLocal<CXTPMouseManager>()  + 0x2b bytes    C++
ToolkitPro1020vc80UD.dll!`dynamic atexit destructor for 'CXTPMouseManager::_xtpMouseThreadState''()  + 0x28 bytes    C++
ToolkitPro1020vc80UD.dll!_CRT_INIT(void * hDllHandle=0x00a30000, unsigned long dwReason=0x00000000, void * lpreserved=0x00000001)  Line 417    C
ToolkitPro1020vc80UD.dll!__DllMainCRTStartup(void * hDllHandle=0x00a30000, unsigned long dwReason=0x00000000, void * lpreserved=0x00000001)  Line 509 + 0x11 bytes    C
ToolkitPro1020vc80UD.dll!_DllMainCRTStartup(void * hDllHandle=0x00a30000, unsigned long dwReason=0x00000000, void * lpreserved=0x00000001)  Line 459 + 0x11 bytes    C
ntdll.dll!LdrInitializeThunk()  + 0x29 bytes   
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]   
ntdll.dll!LdrShutdownProcess()  + 0x142 bytes   
kernel32.dll!IsValidLocale()  + 0x8eb bytes   
kernel32.dll!ExitProcess()  + 0x14 bytes   
msvcr80d.dll!__crtExitProcess(int status=0x00000000)  Line 684    C
msvcr80d.dll!doexit(int code=0x00000000, int quick=0x00000000, int retcaller=0x00000000)  Line 596 + 0x9 bytes    C
msvcr80d.dll!exit(int code=0x00000000)  Line 398 + 0xd bytes    C
M230.exe!__tmainCRTStartup()  Line 599    C
M230.exe!wWinMainCRTStartup()  Line 403    C
kernel32.dll!RegisterWaitForInputIdle()  + 0x49 bytes


Has anybody an idea what is changed between this two versions? I have also tried the 9.81 version with the same troubles!

pleas help
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 05 July 2006 at 8:39am
Hi,
 
Hmm. Can you create new issue in issuetrack and describe architecture of application better. Is all application single exe? SDI/MDI/Dialog Based etc?
May be you can recreate it with new simple application with same architecture?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jerry2000 View Drop Down
Newbie
Newbie


Joined: 22 April 2004
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerry2000 Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2006 at 9:39am
Hi,

Today is my last working day. Tomorrow my holidays start. I come back in three weeks, then i start with the issue.

cu
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.063 seconds.