Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » GuiLock Example broken
Re: GuiLock Example broken [message #22835 is a reply to message #22829] Fri, 21 August 2009 14:12 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Memory allocator uses implicit TLS, __thread (in fact, it is the cornerstone of its efficiency). If that one is replaced by something not working, it explains the issue. Have you tried with USEMALLOC.

Another thing to mention is that Thread has, at thread exit, explicit call to release per-thread associated allocator cache. If you are not using Thread, you should call MemoryFreeThread(); at the end of thread. But symptoms of this would be leaks, not crashes.

Side note: allocator only replaces new/delete, not alloc/free.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to send msg to specific IP ?
Next Topic: Example Hello World Client/Server Broken?
Goto Forum:
  


Current Time: Mon Aug 25 19:01:43 CEST 2025

Total time taken to generate the page: 0.06830 seconds