> It looks like you're using the non-exception version of POL with C++
> exception handling.  The non-exception version uses Palm OS's
> ErrThrow/ErrTry system, while the C++ exception version uses real C++
> exceptions.


yes, I am using POL CNetLibClientStream class to implement the socket
connection.
I also try the following codes, it still doesnt work:

ErrTry {
   clientSock >> cRevMsg;
}
ErrCatch(inErr) {      // maybe the inErr is not correct, I dont know what
is the error code for disconnecting.
   FrmCustomAlert(commonError,"The connection was broken.","","");
  return;
} ErrEndCatch

any suggestion?



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

Reply via email to