Re: how can i solve this problem
Friday, October 11, 2002 01:46 AM
Dont leave your catch block blank. Display the exception, whether its an i/o or unknownhost exception etc..This way you will be able to troubleshoot your problems.
Secondly, it depends what does your echo.start() expression do? Are you catching exceptions in the start() method? if echo.start() is a lengthy process, which is prone to errors and exceptions, then your application might be halted during the execution of this code. Try running echo.start() in a separate thread so that even if it malfunctions, your while loop isnt effected.