Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pan_create wasting memory with temp strings again. #257850
03/25/09 22:13
03/25/09 22:13
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline OP
Expert
EvilSOB  Offline OP
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hi JCL.
It seems an old bug I found has either returned or, at least, shown another face.
When using pan_create, with a digits element, with a literal format string,
EG: The "Just a Test" portion of digits(0,0,"Just a text",*,0,0);
the format portion gets created as a temporary hidden string. Fine, good, no problem.
BUT, this temp string doesnt get removed/freed when the panel does, and theres no
way for us programmers to get to it because it doesnt have a pointer we can get at.

Is this my old nemesis returned to haunt me, or something new...

Thanks buddy.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: pan_create wasting memory with temp strings again. [Re: EvilSOB] #257881
03/26/09 08:31
03/26/09 08:31
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
No, it's still the old thing. The string gets freed at exit, but not before, so when you permanently create and remove panels with strings, memory allocation goes up. This was not yet fixed, but will be in the next public release.

Re: pan_create wasting memory with temp strings again. [Re: jcl] #257902
03/26/09 12:41
03/26/09 12:41
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline OP
Expert
EvilSOB  Offline OP
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Ah, cool. Thanks muchly.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  jcl, Nems, Spirit, Tobias 

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