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
0 registered members (), 18,435 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
Wait() #297113
11/05/09 07:58
11/05/09 07:58
Joined: Oct 2009
Posts: 17
J
justA7 Offline OP
Newbie
justA7  Offline OP
Newbie
J

Joined: Oct 2009
Posts: 17
hi,
how can i reserve my content of local variables during wait time and then call them? frown

thnx.

Re: Wait() [Re: justA7] #297127
11/05/09 10:30
11/05/09 10:30
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
local variables are reserved during a wait(). The value is restored after the wait(), but the address will change. What do you mean call them?

Last edited by DJBMASTER; 11/05/09 10:31.
Re: Wait() [Re: DJBMASTER] #297132
11/05/09 11:22
11/05/09 11:22
Joined: Oct 2009
Posts: 17
J
justA7 Offline OP
Newbie
justA7  Offline OP
Newbie
J

Joined: Oct 2009
Posts: 17
how can i reserve the addresses to use them again?

Re: Wait() [Re: justA7] #297133
11/05/09 11:31
11/05/09 11:31
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
if you are desperate, you could always define the needed local as pointers,
then allocate them memory-space with malloc or sys_malloc.

The memory allocated stays in place, but youve got to remember to free it
when your function is going to close...


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

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