Gamestudio Links
Zorro Links
Newest Posts
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
Missing PnL files in zOpen child processes
by DonQuijote. 10/19/26 11:11
ZorroGPT
by TipmyPip. 10/15/26 08:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 8,060 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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