All strings are global variabls unless you set pcrelative strings pragma

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of S
Boedecker
Sent: Wednesday, June 06, 2001 16:37
To: Palm Developer Forum
Subject: Re: global find failing


Here is the entire function (I've commented out everything except what I'm
showing here):

void DoFind(FindParamsPtr findParams)
{
 Char   header[]="testApp";

  FindDrawHeader(findParams, header);
}

I may not be an expert at this but I am aware that I cannot access Global
during a find.  The whole purpose of my posting was not to find out why I
can't access globals; that I know.

What I don't know is why the variable "header" is being defined as a global
since it's local to this function.  And I did make sure that this function
is in the main segment of my code.

I made the variable a const and also made sure "Pool Strings" was not
checked in the preferences.  Is there anything else in the preferences I
need to look at?

shawn




"Steve Mann" <[EMAIL PROTECTED]> wrote in message
news:51976@palm-dev-forum...
>
> At 2:12 PM -0600 6/6/01, S Boedecker wrote:
>
> >The failure
> >says I am accessing global variables and the failure goes away when the
> >following code is removed.
>
> It's failing because of what the error message says: you're accessing
> global variables.
>
> Without showing us the declarations of the parameters to
> FindDrawHeader, it's unlikely that anyone can tell you much more.
> Also, the scope of header may be such that it's put in the global
> space. Hard to tell from what you've sent us.
>
> Regards,
> Steve Mann
> --
> -------------------------------------------
> Creative Digital Publishing Inc.
> 1315 Palm Street, San Luis Obispo, CA 93401-3117
> -------------------------------------------
> 805.784.9461              805.784.9462 (fax)
> [EMAIL PROTECTED]       http://www.cdpubs.com
>
>



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to