..and static locals are treated as globals if I'm not mistaken, so static
locals are also not allowed in DA's.

Solution: use the feature manager (FtrGet and FtrSet).  

---

--On Wed, Jun 23, 1999 10:35 AM -0500 Steve Lemke <[EMAIL PROTECTED]>
wrote:

>> No, I am using Codewarrior. I have, since the last mail, tested a little
>> bit more, and I reached the conclusion that I can have one global
>> variable on the whole app. If I try to allocate more than that (either
>> by using static qualifiers inside functions, or by declaring in the main
>> block), I get the described behaviour: the DA works OK quits perfectly,
>> but when the running app closes, the Palm crashes with a 'Fatal Error'
>> which I observed to be a 'Privilege Violation' in the MW Debugger.
> 
> If your "DA" is an application that runs as a nested application, 
> launched from within another application, then the "DA" is not 
> allowed to have ANY globals.  Not even one.
> 
> Globals are only valid for a UI application running on a 
> sysAppNormalLaunch (and a few other launch codes which are basically 
> the same as a normalLaunch).
> --Steve
> 




Reply via email to