I'm not sure if the SrmOpen call was successful, but it did not crash the system.
Only the SrmControl(gPortID, srmCtlIrDAEnable, NULL, NULL); call crashed the system! That is a good idea, I'll try looking at the err value. Thanks Talmage -----Original Message----- From: Dennis Leas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:45 PM To: Palm Developer Forum Subject: Re: Fatal_Error_On_Tungsten 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
