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

ToolkitPro - Singleton - critical section crash

 Post Reply Post Reply
Author
Message
Calvin View Drop Down
Newbie
Newbie
Avatar

Joined: 17 October 2017
Location: Croatia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Calvin Quote  Post ReplyReply Direct Link To This Post Topic: ToolkitPro - Singleton - critical section crash
    Posted: 10 November 2017 at 5:28am
> I have a problem since a few days ago, cannot tell for sure. I have ToolkitPro 18.01, dinamically linked. When I start my application, it hangs and crashes in the function GetAssocAt, in afxtempl.h, but call stack suggests it is a ToolkitPro problem:

ToolkitPro1801vc140x64U.dll!CMap<CXTPRWCriticalSection const * __ptr64,CXTPRWCriticalSection const * __ptr64,long,long>::GetAssocAt(const CXTPRWCriticalSection * key=0x0000000061f65d58, unsigned int & nHashBucket=1969909414, unsigned int & nHashValue=1969909414) Line 1541 C++
  ToolkitPro1801vc140x64U.dll!CMap<CXTPRWCriticalSection const * __ptr64,CXTPRWCriticalSection const * __ptr64,long,long>::Lookup(const CXTPRWCriticalSection * key, long & rValue=0) Line 1556 C++
  ToolkitPro1801vc140x64U.dll!CXTPRWCriticalSection::GetLocalSharedLockCounter() Line 368 C++
  ToolkitPro1801vc140x64U.dll!CXTPRWCriticalSection::PushLocalSharedLockState() Line 252 C++
  ToolkitPro1801vc140x64U.dll!CXTPRWCriticalSection::LockExclusive() Line 197 C++
  ToolkitPro1801vc140x64U.dll!XTPAccessExclusive<CXTPApplication>(CXTPApplication * pObject=0x0000000061f65d20) Line 678 C++
  ToolkitPro1801vc140x64U.dll!CXTPSingletonPointer::CXTPSingletonPointer(unsigned __int64 cbObjectSize, int (void *) * pfnCreator, void (void *) * pfnDestroyer) Line 49 C++
  ToolkitPro1801vc140x64U.dll!CXTPSingleton<CXTPActiveScriptStdRuntime::TimeoutTaskRegistry>::InstancePointer() Line 144 C++
  ToolkitPro1801vc140x64U.dll!`dynamic initializer for 'CXTPActiveScriptStdRuntime::TimeoutTaskRegistry::m_pInstance''() Line 608 C++
  ucrtbase.dll!00007ff89a5a7f4e() Unknown
  ToolkitPro1801vc140x64U.dll!dllmain_crt_process_attach(HINSTANCE__ * const instance=0x00000000613b0000, void * const reserved=0x0000000000000000) Line 67 C++
  ToolkitPro1801vc140x64U.dll!dllmain_dispatch(HINSTANCE__ * const instance=0x00000000613b0000, const unsigned long reason=1, void * const reserved=0x0000000000000000) Line 182 C++

However, on 2 machines in the office it still works, on 4 of them it crashes regularly. Maybe it is because of some Windows update, I have to check first.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2017 at 1:04pm
Hello Calvin,

Can you provide callstack during crash for other threads?
Also It will be great if you make and share sample application where we can reproduce this crash.

I see your ticket on support site, so please write description and add attachment there.

Regards,
 Oleksandr Lebed
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.156 seconds.