From: Stuart Brand Date: 2006-06-23T02:33:38+09:00 Subject: Re: while in a tk mainloop > What exactly are you trying to do inside the while loop? > depending on what you are trying to do more than likely there is a way > to do it without the loop. I might be able to help if i know more about > what you are trying to do. Hi Sure, server = TCPServer.new('0.0.0.0', 8080) while (session = server.accept) Thread.new{MainServer.handle_connection(session)} end The while loop is for new connection and the Tk loop would be to show the status Many thanks Stuart -- Posted via http://www.ruby-forum.com/.