Just a suggestion, why don't you try using an array of char instead of pointer. I usually use that and it doesn't cause me any trouble.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Stringer Sent: Sunday, February 19, 2006 11:46 PM To: Palm Developer Forum Subject: Re: Database HELP! At 03:15 AM 2/18/2006, you wrote: >Subject: Database HELP! >From: =?iso-8859-1?Q?Nicol=E1s_Balparda_Bossi?= <[EMAIL PROTECTED]> >Date: Fri, 17 Feb 2006 13:25:47 -0200 > >For days i've been trying to create a record to my database, and it was >completely useless. I really couldnt find any help to explain how to create >a new record without any memory leaks or any other error. > >My structure is like this: > >struct abc >{ > Char* name; > Char* username; > Char* password; >}; If you just store your struct, then you are storing 3 pointers. But the moment you exit your program the memory pointed to by your pointers is released to the OS and no longer contains your data. So, where's your data? So just format a record from your data and write it out using the Dm...() API calls. Roger Stringer Marietta Systems, Inc. (www.rf-tp.com) -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
