Print Page | Close Window

ToolkitPro - Singleton - critical section 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=23482
Printed Date: 23 December 2024 at 6:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolkitPro - Singleton - critical section crash
Posted By: Calvin
Subject: ToolkitPro - Singleton - critical section crash
Date 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.



Replies:
Posted By: olebed
Date 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



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