Hi,
Hi,
just catch the expection
catch(OSG_STDEXCEPTION_NAMESPACE::exception &e)
{
SLOG << e.what() << endLog;
delete server;
osgExit();
}
there is an example in the 12ClusterServer.cpp tutorial.
Andreas
Thanks Andreas, but I would like to know if there is a more clean way to do
this, for example a stop method in the client or something similar. I think
that one should use exception handling only when something goes wrong. ;)
Currently the server detects the closed connection to the client. The
server doesn't distinguisch between close by intention or close caused
by an error.
In both cases an exception is thrown.
Marcus
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users