Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Unfreed in -diag #473557
07/22/18 01:38
07/22/18 01:38
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi guys!

I just noticed that in my project, when I run it with -diag command, I can see this at the end of the log
Quote:
Unfreed: 1286, , 52 bytes
Close window at 20.302
Does this mean that I'm having a memory related problem (unreleased memory)?
You may find this question stupid, but I'm worried about unfreed memory grin

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Unfreed in -diag [Re: 3run] #473558
07/22/18 07:52
07/22/18 07:52
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Yes it is. There is a little memory unrealeased.

Salud!

Re: Unfreed in -diag [Re: txesmi] #473571
07/23/18 08:30
07/23/18 08:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Thank you txesmi laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Unfreed in -diag [Re: 3run] #473575
07/23/18 19:08
07/23/18 19:08
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
you are welcome.

You can use sys_marker before every memory allocation and know which one is.

Re: Unfreed in -diag [Re: txesmi] #473577
07/23/18 23:46
07/23/18 23:46
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Didn't know that one.. Sounds very useable, thank you!

About unfreed memory - it's probably related to useage of 'parent' pointers (my guess), since I use them and on close they aren't removed probably. Got to make sure that I free/remove everything before closing the engine. I do that before loading new level or restarting the current one, so I just need to do that before exiting the game too.

Edit: nahh, I was wrong grin got to use 'sys_marker' and look for the leak.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1