FWIW, I've patched the exception handler in ASyncReceive as below. If there are objections, please explain them so I can determine another solution.
except on E:Exception do begin bMore := FALSE; HandleBackGroundException(E); end; end; One thing to note is that applications that currently depend on Abort not being called here will need to implement OnBgException and set CanAbort to False. Now, how will the code in OnBgException know the exception came from ASyncReceive? That's up to the application developer to figure out, I suppose. On Fri, Mar 26, 2010 at 4:14 AM, DZ-Jay <d...@caribe.net> wrote: > > On Mar 25, 2010, at 18:33, Jon Robertson wrote: > > > Does anyone know why ASyncReceive is swallowing the exception and not > > calling HandleBackgroundException? > > Wow, that was a some time ago. As far as I recall, Arno and I verified > that it was indeed a bug; the code should be trapping exceptions and calling > HandleBackgroundException() when they occur. > > I believe it was just never patched. I saw that we left the discussion by > Arno recommending that Francois take a look at it. My guess is that he > hasn't had a chance yet. > > Francois, is there any objection to patching ASyncReceive to call the BG > Exception handler? > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be