I found my problem. If Bufferlen == 0 it will crash (and I wasn't setting it properly)

Neil Whitworth wrote:

I'm tring to use the FrmCustomResponseAlert function to ask for a single line of text, but my app always crashes with "Object not in form".

when debuging in POSE the form has been drawn to the screen, but it does not contain a field for the user to enter text.

Buffer is a 256 char array, and BufferLen = 256;

FrmCustomResponseAlert(UsernameAlert,"Test",NULL,NULL,Buffer,BufferLen,NULL);


This is my resource

ALERT  ID UsernameAlert
    CONFIRMATION
BEGIN
    TITLE "Please Enter Username"
    MESSAGE "mCenter:^1"
    BUTTONS "OK"
END


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

Reply via email to