Don't call FrmCustomAlert with the empty string ""  use " " (note the space
between the quotes) Also make sure any strings your pass are not NULL.

----- Original Message -----
From: "Michal Seliga" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 3:41 AM
Subject: FrmCustomAlert


> Greetings
>
> In our project we use FrmCustomAlert for error messages. Resource named
Universal is defined with string "^1" and we call
> FrmCustomAlert(UniversalAlert,any_text,"",""), where any_text is variable
of type char[].
>
> It crash. Everytime this function is called it throws fatal exception.
Stack shows that it crashed in StrLen called by FrmCustomAlert.
> But text is set in variable (at least debugger show it right).
>
> We found we can 'repair' this error by using #defines, not variables...
Why? Is it error of PalmOS, or error of CodeWarrior compiler?
>
> It crashed on both PalMOS 3.5 and PalmOS 3.1. We use Codewarrior 4.0.1
build 0436.
>
> Any ideas?
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to