--- trunk/FlisServer/FlisServerDlg.cpp 2007/12/11 12:15:27 229 +++ trunk/FlisServer/FlisServerDlg.cpp 2007/12/17 15:05:06 297 @@ -177,7 +177,7 @@ Serial.close(); Serial.open( config.comport, Baud ); } - catch (exception* e) + catch (...) { MessageBox( "Serial.open() exception" ); return 0; @@ -189,7 +189,7 @@ { Serial.open( config.comport, Baud ); } - catch (exception* e) + catch (...) { MessageBox( "Serial.open() exception 2" ); return 0; @@ -644,8 +644,10 @@ { data.push_back(smscount[i]); } - AppendText(CString(&data[0])); writeFrame(data); + + data.push_back(0); //Zero terminate the string befor pasting it to logwindows + AppendText(CString(&data[0])); Sleep(200); ReadSms();