Some Ideas: Do you check the value of "err"?  Are you certain that the
SrmOpen call is successful?

Dennis Leas
-------------------
[EMAIL PROTECTED]


----- Original Message -----
From: "Talmage Wesley" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 1:07 PM
Subject: Fatal_Error_On_Tungsten


>
>
> While trying to Enable the IRDA port on the Tungsten T with the following
> code, I got a fatal error:
>
> memory_mgr line ?????
>
>
>
> This code segment works on OS4.1 sony palms:
>
>
>
> void Serialtest(void)
> {
>
> UInt gPortID;
> Err err;
>
> err = SrmOpen(serPortIrPort, 9600, &gPortID);
> SrmControl(gPortID, srmCtlIrDAEnable, NULL, NULL);
> SrmSend(gPortID, "aaaaa", &err);
> err = SrmSendWait(gPortID);
> SrmClose(gPortID);
>
> }
>
>
> Can anybody tell me why this fails in the 5.0 OS Tungsten T?
>
>
>
> Thanks
>
>
> Talmage Wesley
> Telemotive Industrial Controls
>
>
>
>
>
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


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

Reply via email to