U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Tue Jun 23 07:12:22 GMT+2 2026

Total time taken to generate the page: 0.00579 seconds