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 » Developing U++ » U++ Developers corner » Memory leaks before program begin
Memory leaks before program begin [message #28901] Fri, 24 September 2010 23:59 Go to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

It seems I have a problem in the ffmpeg library I am using, as I get a memory leak just after GUI_APP_MAIN {.

Question: Is it possible to void the memory leaks before the program begins?


Best regards
Iñaki
Re: Memory leaks before program begin [message #29046 is a reply to message #28901] Sun, 03 October 2010 17:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 24 September 2010 17:59

Hello all

It seems I have a problem in the ffmpeg library I am using, as I get a memory leak just after GUI_APP_MAIN {.

Question: Is it possible to void the memory leaks before the program begins?


Not yet. So far it is possible to suppress leak reporting for certain allocations, however you have to have oportunity to switch it on/off:

MemoryIgnoreLeaksBegin()
MemoryIgnoreLeaksEnd()

struct MemoryIgnoreLeaksBlock {
MemoryIgnoreLeaksBlock() { MemoryIgnoreLeaksBegin(); }
~MemoryIgnoreLeaksBlock() { MemoryIgnoreLeaksEnd(); }
};
Re: Memory leaks before program begin [message #29061 is a reply to message #29046] Mon, 04 October 2010 08:18 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Thank you Mirek.

I will try it.


Best regards
Iñaki
Previous Topic: how to building UPP to one dll?
Next Topic: Working on new installer / makeinstall...
Goto Forum:
  


Current Time: Tue Apr 16 22:34:36 CEST 2024

Total time taken to generate the page: 0.01091 seconds