At 03:15 AM 3/13/2006, you wrote:
Subject: re: treo650 only shows a white form and the device is dead
From: "henryxu" <[EMAIL PROTECTED]>
Date: Mon, 13 Mar 2006 07:31:50 -0000

>2) Does your "MemPtrNew" allocate enough memory (try adding 2 to >the size of all the allocations)

Why should I adding 2 not 1 to the size of all the allocations?
It seems that I just need a more entra space to store '\0' at the end of the string.(I haven't allocated this byte last time.)

Defensive programming...
Yes 1 is good, so add 2.


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)

Reply via email to