I avoid global variables at all costs by creating a class with all my global 
data and store it on a database. This allows me to persist my globals without 
having to worry about segments and all the rest of the horse... Databases are 
accessible by all applications under the right conditions.
 
 
Luis
> Date: Thu, 25 Oct 2007 00:24:34 +0100> Subject: What 'counts' as a global?> 
> From: [EMAIL PROTECTED]> To: [email protected]> > In a previous 
> thread, Ben described things that you can't access when your > app is running 
> as a sublaunch without globals> > "You cannot access any variables that 
> aren't located on the stack. This > includes global variables, static 
> variables, and some kinds of constant > data."> > My question is - 'what 
> kinds of constant data?'> > I know I can't use normal globals> I know I can't 
> use static variables> > but what about initialisers> > RectangleType 
> bottomRect={0,145,160,15};> or> Char string[]={"initialise with string"};> 
> or> StrCopy(stringP,"some text to copy");> > what is the underlying rule here 
> - how do I know what Codewarrior will put > on the stack vs what it won't 
> ???> > thank you in advance!> > Rob> > -- > For information on using the 
> ACCESS Developer Forums, or to unsubscribe, please see 
> http://www.access-company.com/developers/forums/
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to