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 » httpRequests in secondary non-gui-main Thread (if memory leaks come from http.buffer?)
Re: httpRequests in secondary non-gui-main Thread [message #55334 is a reply to message #55333] Sat, 31 October 2020 16:01 Go to previous messageGo to previous message
JeyCi is currently offline  JeyCi
Messages: 69
Registered: July 2020
Member
Klugier wrote on Sat, 31 October 2020 15:02

Did you try to debug memory leaks?

I do have such main
GUI_APP_MAIN
{
#ifdef _DEBUG
	StdLogSetup(LOG_COUT|LOG_FILE);
	HttpRequest::Trace();
#endif

    MyAppWindow().Run();
}

and getting such LOG (under spoiler)
Toggle Spoiler

but didn't know what to do with it Embarassed - taking into consideration this part:
Quote:
Of course, the only problem with this is that the order of allocations must be exactly the same in the "test run". Which is often not, but usually it is possible to arrange it so after spending a couple of nights desperately looking for the source of leak in the code using other methods...

... while using ONLY U++ & neither VisualStudio tools nor Deleaker for Qt - it was problematic for me to deal with this LOG's info... therefore I have only debugger in my disposal & its FreeFreeFree_etc in one variable & my supposition that it concerns the leak?.. by the way original code, though not leaking is in examples in u++ (as in my screen was) & when using it not in main, but in secondary thread - I'm getting memory leaks (as I already mentioned)... therefore I supposed that httpRequest can give memory leak, but in ST-app these leaks are being hidden somehow, though in MT-app are being revealed by assertion... IMHO... if async loading takes place in secondary thread... BTW it's not a Server, just some requests to some html_pages (multiple)...
Klugier wrote on Sat, 31 October 2020 15:02

visit this site tomorrow and all new information should be there.

Smile ok - will wait till tomorrow - thank you!
Klugier wrote on Sat, 31 October 2020 15:02

Alternatively you could update to the latest SVN version and read new documentation page inside TheIDE

I do not see any updater in the ide itself... is it possible only from the git? - I am not connected to it anyway...
Klugier wrote on Sat, 31 October 2020 15:02

or just read the raw data in commit content available on GitHub (Click on Load Diff for obtaining content).

have got... thank you!
but my results you can see under spoiler in this message above here - until I'll find what to do with it from your paper... Rolling Eyes because I don't know yet... and you are not telling about openSSL behavior in my situation described


Best regards.

[Updated on: Sat, 31 October 2020 17:19]

Report message to a moderator

 
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: Sat Jun 07 07:14:49 CEST 2025

Total time taken to generate the page: 0.06117 seconds