Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Imhotep, opm), 785 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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