Hi,

Although it probably has nothing to do with your current pb, it looks like the call to MemSet should be:
MemSet(&event, sizeof(EventType), 0);

[please see prototype: Err MemSet(void *dstP, Int32 numBytes, UInt8 value);]

The order of the size and value parameters is inverted compared to the standard C memset API... Trap in which I often fall too.
Inverting the parameters does not mess the memory, but it just does nothing.

Cheers,
Vinc

----- Original Message ----- From: "Tam Hanna" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, June 02, 2008 6:00 AM
Subject: Treo 680 vs LineFeedChar weirdness


Hello folks,
I have stumbled upon a very weird behaviour on my Treo - the code below
works on TX and Sim, but on the Treo, the even never arrives in the form
event handler. The UI of the form consists just of a field(which has the
focus) - but the return char doesn't arrive there either:

// send the string
MemSet(&event, 0, sizeof(EventType));
event.eType = keyDownEvent;
event.data.keyDown.chr =   linefeedChr;
EvtAddEventToQueue(&event);

Anyone have any idea what's going on here?

Best regards
Tam Hanna


--
For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to