Replies: 5 comments 6 replies
-
I should also state that disconnection and reconnection works fine on the console only app! |
Beta Was this translation helpful? Give feedback.
-
Another addition, i have removed any of the StreamReceived code outside of the function exists with nothing in it. Service still stops, defiantly appears to be related to the connect / disconnect code although no idea where. |
Beta Was this translation helpful? Give feedback.
-
Hi @Tithras I will take a look at this ASAP! Thanks for letting me know. |
Beta Was this translation helpful? Give feedback.
-
Wow thanks :) Managed to resolve my issue with a threadsafe logging method so it works fine now but I will have a look through your example to confirm I haven't missed anything else :) |
Beta Was this translation helpful? Give feedback.
-
Yup, pretty much the same :) Again, thanks for taking the time to look even though it turned out to be my naff coding !!! The joys of being a hobby coder trying to write production code ;) |
Beta Was this translation helpful? Give feedback.
-
Good morning, I have currently got a console server which accepts multiple connections and outputs to the console when connections / disconnects happen etc. Fairly basic and works with no issues, the only thing I did extra was allow 1 client to send to all clients as that was 1 of my requirements.
My question is that I have attempted to migrated it to a windows service rather than console, with the debugging and logging output going to a log file however have run into issues. The service starts, log file states accepting clients and i can then connect a client however if I disconnect that client and reconnect it i find the service has stopped. I must assume that I am getting some sort of exception as part of that connection / disconnection process but I am at a loss to find what is causing it. Has anyone been able to get this to run as a windows service successfully and if so would you be able to show how you got it working? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions