Hi Dmitry,
  Thanks for your reply.
  So where  I need to declare the following?
GLOBALTEST *globaltest;
  
  Yes i need to assign  "0" for the memory chunk.
  
  I am not clear about how can i use global variables in shared library.
  I think Structure is the only way. so I declared the structure in  global 
space and created memory  useing MemPtrNew.But i don't know  where i am doing 
wrong.
  
  Can you Just look into my code which i sent in my original mail.
  
  Thanks once again for your reply,
  
  Regards,
  Harsha
  
  
  
Dmitry Grinberg <[EMAIL PROTECTED]> wrote:  > GLOBALTEST *globaltest;
>
> It is there in the global scope.



um...that is a GLOBAL...the one you're not supposed to have any of

look into the feature manager to store the pointer to the globals, and
do not forget to set memory owner to 0 of any chunks you allocate in a
library, as otherwise if multiple threads one the app and one closes
it, the other will crash (SSL library has this problem)


-- 
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003

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


                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to