--- Edmond <[EMAIL PROTECTED]> wrote: > This program below, i can sucessful run this problem > once, but i call it again my Visor Plateimun will halt. > I find it it halt in MemPtrNew(Databytes);
How big is Databytes? MemPtrNew() returns 0 if it fails. You call it twice without checking the return value. Suppose your code works. Then the first time you call RcvSerialData(), it creates a database on the handheld. This database takes up memory. The second time you call RcvSerialData(), there might not be enough space (you allocate 2 times the size of the database). So, then MemPtrNew() would fail. I'm not sure I know what you mean by "my Visor Plateimun will halt". Does your Visor stop working and you have to reset it? In that case, I wonder how you determined that it halts at MemPtrNew(Databytes). __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
