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
1 registered members (TipmyPip), 18,499 guests, and 7 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
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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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