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/

Reply via email to