Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
7 registered members (clonman, TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 18,869 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
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 | 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