[twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Henk van der Meer
We use ICS for a TCP server. Is typically serves a few hundreds of clients (200-500). They typically connect so that the server receives connection request on a regular pace. The connection rate usually starts with some 10s per second to 1 or 2 per second. We have noticed a problem that after so

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Wilfried Mestdagh
Hi, Possible you have an unhandled exception. Please put some logging code into the event OnBGException to check this, as well for the server socket as for the data (client) sockets. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oors

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Henk van der Meer
Hello Wilfried, Thanks for answering. Wouldn't an unhandled exception show up in a message box? Henk van der Meer Time Service -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Wilfried Mestdagh Verzonden: maandag 5 september 2011 16:

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Wilfried Mestdagh
Hi Henk, No, if you have an unhandled exception in one of the events then the OnBGException is fired. This is because most (if not all) of the events are called from the middle of nowhere (the windows message pump). -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://ww

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Henk van der Meer
Hi Wilfried, Thank you. I will implement the OnBGExeption to see it that can point us to the root cause. Groeten, Henk van der Meer Time Service -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Wilfried Mestdagh Verzonden: maandag 5

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Angus Robertson - Magenta Systems Ltd
> No, if you have an unhandled exception in one of the events then the > OnBGException is fired. The latest ICS v7 has improved exception handling to give more control over how background exceptions are handled. The last thing you want on a unattended server is a modal dialog. A similar proble

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Arno Garrels
Henk van der Meer wrote: > Wouldn't an unhandled exception show up in a message box? If you run the app in the debugger exceptions show up in the IDE. Outside the debugger unhandled exception in one of the ICS event handlers trigger OnBgException if assigned, and are eaten silently. However it is

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Henk van der Meer
Hello Arno, Thank you. I will update to the latest version and start experimenting with exceptions. I will create an explicit exception and see how it is handled. Cheers, Henk van der Meer Time Service -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@e