06 Sep 2010 
Support Center » Knowledgebase » 6.x: random crashes in multi-threaded application
 6.x: random crashes in multi-threaded application
Article Problem: I'm using EurekaLog in multi-threaded application and sometimes see random access violations or range check errors or other exceptions.

Reason: You're calling some EurekaLog routines, which works with global resources. For example, building call stack mean accessing debug information - which is a global resource. These routines are not thread-safe - i.e. there is no lock inside.

We can't set a critical section on our side, since if code crashes while holding critical section - then EurekaLog may be not be able to gain access to protected resource, when generating a report.

Solution: The solution is to wrap calls to such EurekaLog routines into critical section on your side. When crashing while holding your critical section, EurekaLog will not aquire your critical section for building report.

Checked EL version: 6.0.24
Ticket ID: 2282


Article Details
Article ID: 27
Created On: 30 Jun 2010 8:54 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software by Kayako eSupport v3.60.03