Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, dr_panther, Ayumi, Quad, AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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