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

Home » U++ Library support » U++ MT-multithreading and servers » httpRequests in secondary non-gui-main Thread (if memory leaks come from http.buffer?)
Re: httpRequests in secondary non-gui-main Thread [message #55375 is a reply to message #55374] Tue, 03 November 2020 13:57 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
You should have invoked that menu command I have suggested, that would put the whole backtrace snapshot on the clipboard that you could post here (e.g. as attachement). Much better than screenshots... Smile

Using Thread is fine! I was actually afraid that you are not using it, that would lead to leaks. You need to use Upp::Thread as it contains some allocator related stuff to release some allocation caches...

Anyway, from the very sparse info I am getting, I am starting to think that you migh not be locking things properly when communicating between threads. I would guess that 'showDone' is something that you call from the thread to show progress in GUI. Do you lock things propertly? E.g. with GuiLock __?

Mirek
 
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: Encoding URL for HttpRequest
Next Topic: Missing data in the socket
Goto Forum:
  


Current Time: Sun Sep 06 18:55:54 GMT+2 2026

Total time taken to generate the page: 0.00775 seconds