Ok. You all win. I'll do it. non-zero length it is!

Stuart Norton

-----Original Message-----
From: Jason Dawes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 14, 1999 6:59 PM
To: [EMAIL PROTECTED]
Subject: RE: MemoryMgrNew Crash


At 01:32 PM 7/14/99 +0100, you wrote:
>Ok. I'll use a handle. Here's the whole function anyway (for the whole Palm
>Developer Community to laugh at!...Remember I'm still learning)
>
>               FrmCustomAlert(CustomAlert,"","Writing Field...","");
>               FrmCustomAlert(CustomAlert,"",newtext,"");

These calls ring a bell - there has been some discussion recently about
using zero length strings in FrmCustomAlert & it's behaviour when you do
this.  Apparently it is not a good idea to do this to replace a
place-holder with nothing.  You should either (depending on who you listen
to) use a non-zero length blank string:

        FrmCustomAlert(CustomAlert, " ", "Writing Field...", " ");

or, use a NULL:

        FrmCustomAlert(CustomAlert, NULL, "Writing Field...", NULL);




Reply via email to