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 » Community » Newbie corner » CTRL + C = 659 Heap leaks
Re: CTRL + C = 659 Heap leaks [message #52042 is a reply to message #52041] Thu, 11 July 2019 10:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 12536
Registered: November 2005
Ultimate Member
Well, your method(s) seems fine (although I would probably use static module variables instead of locals in CONSOLE_APP_MAIN).

So, this is console application in POSIX and you are pressing Ctrl+C to terminate it. AFAIK, Ctrl+C just calls exit, which is what is causing the leaks, as 'mybot' never gets destroyed.

Hard to say if there is anything to fix. This behaviour will only exist in Debug mode, in release all will be fine. If this is too annoying, we might consider installing handler that switches leaks testing off...
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How i can play a sound?? wav,mp3,ogg,aiff????
Next Topic: Filtering an ArrayCtrl
Goto Forum:
  


Current Time: Sat Jun 06 19:55:34 CEST 2020

Total time taken to generate the page: 0.01869 seconds