At 03:58 PM 8/14/2003, gamepower111 wrote:
I implemented a socket connection. When the connection was broken, the
Emulator will throw an alert saying : "ErrorMgr.c, Line:203, ErrThrow called
without a pending ErrTry".

The codes are as following:

try {
  clientSock >> cRevMsg; // recieve message from server.
                         // if the connection is broken, throw the alert.
 }
 catch (CIOException e) {
    FrmCustomAlert(commonError,"The connection was broken.","","");
    return;
 }

How can i handle this problem?

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.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to