Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 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
dataNew broken? #482549
02/22/21 19:28
02/22/21 19:28
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
The manual says dataNew deletes the dataset, frees the memory, and if Records & Fields are both 0 does not create a new dataset.

However, this does not appear to be happening. With Records & Fields both 0, memory usage does not decrease (per memory()).

Does anyone else see this memory leak?

Re: dataNew broken? [Re: DdlV] #482550
02/22/21 20:16
02/22/21 20:16
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
If the Zorro.exe process memory footprint does not decrease, this does not imply a memory leak. It's possible the memory is being recycled for the next dataset to increase speed. Heap allocations can be slow.

Re: dataNew broken? [Re: DdlV] #482551
02/23/21 00:55
02/23/21 00:55
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks AndrewAMD.

Well, it isn't dataNew, but it's very weird. I could copy the failing script to a new file and it would run without problems. Same thing happened with another script. No idea if it's filename length or what. Perhaps a Wine glitch. No time now to copy stuff over to a real Win & try there... For now close this pending further debugging when time allows.

Thanks.


Moderated by  Petra 

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