|
|
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 #55377 is a reply to message #55375] |
Tue, 03 November 2020 15:07 |
JeyCi
Messages: 50 Registered: July 2020
|
Member |
|
|
mirek wrote on Tue, 03 November 2020 13:57I 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 __?
no it isn't... I just didn't care about the name of the method... but as you can notice this method is being got from another class (asyncHttp)... so I'm starting the WorkerThread as I have shown above... & I separated the loading itself to the separate class that takes vector done in WorkerThread() as Constructor's parameter & several THISFNs as parameters of the method showDone (but its real purpose is exactly loading stuff & returning results to functions of gui_class, in which I of course use GuiLock & Call([=]{this->finished.SetArray(i, va)})...
well but it was prior design, then I of course refactored for not returning results to gui... just from the beginning I wanted to see what is returning - but in the refactored code everything goes to SaveFile(n,res)... I had finally decreased the quantity of synchronization points to zero now... just have now taken for the test the shorter code - to reduce it even more for testing purposes (but it just appered to be the code still with synchronization)...
but the problem in all my step_by_step dev.process is the same - the line I've taken in MemoryIgnore... perhaps you're right - perhaps I shouldn't do loading stuff in the separate class?.. not knowing how to make this class thread-safe?.. perhaps it is not thread-save in my situation described?
mirek wrote on Tue, 03 November 2020 13:57You 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).
ah, I see now... ok when I will shorten the whole code even more - perhaps... in order not to provide unneeded info... (if given description doesn't clarify the surrounding of the problem)
Best regards.
[Updated on: Tue, 03 November 2020 15:16] Report message to a moderator
|
|
|
|
|
httpRequests in secondary non-gui-main Thread
By: JeyCi on Fri, 30 October 2020 18:20
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: Klugier on Sat, 31 October 2020 11:18
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Sat, 31 October 2020 11:38
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: Klugier on Sat, 31 October 2020 15:02
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Sat, 31 October 2020 16:01
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Sat, 31 October 2020 17:34
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Tue, 03 November 2020 08:07
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Tue, 03 November 2020 09:08
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Tue, 03 November 2020 13:40
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Tue, 03 November 2020 13:57
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Tue, 03 November 2020 15:07
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Tue, 03 November 2020 15:46
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Tue, 03 November 2020 18:46
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Fri, 06 November 2020 03:57
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Fri, 06 November 2020 13:03
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Tue, 03 November 2020 13:59
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: JeyCi on Mon, 07 December 2020 08:01
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Fri, 11 December 2020 15:48
|
|
|
Re: httpRequests in secondary non-gui-main Thread
By: mirek on Mon, 02 November 2020 11:57
|
Goto Forum:
Current Time: Mon Apr 29 05:37:37 CEST 2024
Total time taken to generate the page: 0.03488 seconds
|
|
|