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 #52041 is a reply to message #52037] Thu, 11 July 2019 10:10 Go to previous messageGo to previous message
Xemuth is currently offline  Xemuth
Messages: 125
Registered: August 2018
Location: France
Experienced Member
yeah but the object pointed by this ptr from AllModules are allocated in stack from the main :

CONSOLE_APP_MAIN {
	StdLogSetup(LOG_COUT|LOG_FILE);

	SmartBotUpp mybot(myBotID,myBotToken);
	
	Discord_Overwatch ow("OverWatch","ow");
	mybot.AddModule(&ow);

	Discord_Minecraft mc("Minecraft","mc");
	mybot.AddModule(&mc);

	mybot.Launch();
}


So, if I understand well, it should be destroyed at end of the main. I'm right ? Embarassed
Maybe I should rewrite the code and try to store references instead of Ptr's.


[Updated on: Thu, 11 July 2019 10:13]

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
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: Fri Nov 15 04:22:41 CET 2019

Total time taken to generate the page: 0.01626 seconds