Akhilesh,

Since you're forcing us to guess instead of using a debugger to 
figure this one out, my guess is that you are not completely 
initializing the data structure you are passing to your plug-in. 
When allocated on the stack, some uninitialized field is set to one 
(fortuitously benign) value, and when allocated on the heap, the 
field is set to something dangerous.  When you're plug-in accesses 
this field, you get different results.

-- Keith

At 6:41 PM +0530 3/25/02, Akhilesh Singh wrote:
>Hi,
>
>I am developing a plugin that is launched using SysAppLaunch with a custom
>launch code.
>
>Along with the launch code, I am passing some data to it for processing.
>When I send the data that is present on stack the plug-in runs fine. But if
>the data is allocated using MemPtrNew then the Emulator gives me error of
>accessing global variable. But MemPtrNew allocates memory from the
>Application Dynamic Memory area and not the Application Global memory area.
>So why am I getting the error?

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

Reply via email to