Ah, a perfect time for me to learn Tk! So I put together this nice interface with the top half for server1 and the bottom have for server2. Each has a button to start and stop the server and each a list box for output.
Then I started to implement the servers as Threads and then the trouble began with various kinds of crashes. A SuperSearch provided some info here that threads may not get along with Tk.
I tried launching a new thread in a sub that was called when clicking a button. That seemed okay but the thread tries to log a message to the listbox and that appears to be a problem even when I declare the sub as "sub name : locked {}".
So I'm looking for other strategies for acomplishing my task. Threads, no threads, it doesn't matter. It has to run on Win2k or WinXp. I'm using perl 5.8.7. I need to be able to start and stop the servers at any time.
Oh wise Monks, can you show me a path?
In reply to How to run multiple server processes under Tk? by noslenj123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |