Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,259 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is there way to get ptr to added buffer ? #82295
07/19/06 22:28
07/19/06 22:28
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline OP
Serious User
Lion_Ts  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Hi!
Is there a simple way to get pointer to buffer, added by add_buffer? I want to free memory after removing buffer. Do I have to maintain my own pointer list?
Oh, and what add_buffer returns, success / fail or something else ?
Thanks in advance.

Last edited by Lion_Ts; 07/19/06 23:12.
Re: Is there way to get ptr to added buffer ? [Re: Lion_Ts] #82296
07/20/06 09:13
07/20/06 09:13
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Yes, you're responsible for storing the pointer and freeing the buffer. The engine won't do that for you. See Manual -> C-Script -> add_buffer. The function can't fail and thus won't return a value.

Re: Is there way to get ptr to added buffer ? [Re: jcl] #82297
07/21/06 14:16
07/21/06 14:16
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline OP
Serious User
Lion_Ts  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Thank, You, JCL.
I'll try.


Moderated by  old_bill, 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