Hi all! 

I have a problem. When I works with RS-232-C (with modem) in my application, for some 
reason HotSync is called and tryes independently to connect. Because my application 
closes. i insert to code some allerts, but they are closed quickly and themselves. 

Why it takes place? 
How get out of HotSync calling and closing application? 

my code: 

UInt16 refNum; 
SerSettingsType settingCom; 

//Open serial line 
SysLibFind(ComLibrary,&refNum); 

SerOpen(refNum,0,2400); 
SerGetSettings(refNum,&settingCom); 
settingCom.baudRate=2400; 
settingCom.flags=srmSettingsFlagBitsPerChar8|srmSettingsFlagStopBits1|srmSettingsFlagRTSAutoM|srmSettingsFlagCTSAutoM|srmSettingsFlagFlowControl;
 
settingCom.ctsTimeout=NumberTicks(1000); //1 sec 
SerSetSettings(refNum,&settingCom); 


FrmAlert(CuCu); 

SerClose(refNum); 
FrmAlert(CuCu); 

Thanks very much 
Vladimir

-- 
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