Hi All Thanks a lot to Chris Apers, Aaron Ardiri, Greg Lutz for your help
One more question. Suppose if i am doing MemHandle strH = MemHandleNew (maxSrtIToALen); str = MemHandleLock (strH); // something with str; //No MemPtrUnlock (str); //instead MemHandeUnlock (strH); Then do I still need to free memory by using MemHandleFree (strH); or it is only when I use MemPtrUnlock (str); Bye --- Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > Correct, but beware! Allocating only > sizeof(Int32) bytes for the buffer > > evidently represents a misunderstanding: it > happens to be enough to edit > > the value 89, but it won't be enough for a general > Int32 value. The safe > > size to use is "maxStrIToALen". See Palm OS > documentation on StrIToA. > > > > > strH = MemHandleNew (sizeof (Int32)); > > an int32 is 4 bytes :) so, as soon as his 'number' > goes more than 3 digits, > he'll be in trouble *g* it would have been fun to > let him scratch his head > about that wouldn't it? :P > > --- > Aaron Ardiri > [EMAIL PROTECTED] > CEO - CTO > +46 70 656 1143 > Mobile Wizardry > http://www.mobilewizardry.com/ > > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
