At 2:12 PM -0600 2001/06/06, S Boedecker wrote:
>I'm stumped trying to determine why the following code in a DoFind function
>would fail during a global find launched from outside my application but
>works when the global find is launched within my application.  The failure
>says I am accessing global variables and the failure goes away when the
>following code is removed.
>
>Char   header[]="testApp";
> if (FindDrawHeader(findParams, header))
>  return;

Disassemble your source code and you'll find that the string "testApp" is not within 
your code segment, but rather is within a global data segment. Accessing this global 
data segment is not allowed during a global Find operation (because the find function 
is not allowed to access global variables -- it's not the app's A5).

Try adding const to the string and/or selecting the option in CodeWarrior to put 
strings in your code segments (i.e. don't pool strings).

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
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