Hey guys,
I have been using LNet for a long while now, and I have never had any issues, but recently I have run into this issue, and it's really been bugging me. The problem is that the LNet OnDisconnect event will not fire server-side when a client disconnects. I have tried re-installing LNet (Numerous different versions), Reinstalling Lazarus (Clean install with old files removed, every version from latest down to 1.0.0) and I have tried building numerous simple applications, using the Object Inspector to set the OnDisconnect callback and also manually setting it with:
Server.OnDisconnect:=@OnDisconnect;
All other TCP Connections seem to be working fine, but LNet just refuses to realise that A client has disconnected. OnAccept works and OnRecieve, but not OnDisconnect.
Nothing seems to be working and it's really starting to frustrate me, I don't wish to use Synapse as it adds extra complexity to the application, especially since it works in blocking mode, and Indy is out of the question as it isn't fully compatible.
Tried on platforms:
XP 64-Bit
XP 32-Bit
7 64-Bit
7 32-Bit
Tried Environments:
Laz 1.0.14 - FPC 2.6.2 - Win7-64/Win7-32/XP-64/XP-32
Laz 1.0.8 - Win7-64/Win7-32
...
Laz 1.0.0 - Win7-64/Win7-32/XP-64/XP-32
I'll also verify at this point that this also started happening on my Development machine that hadn't been used in ages, the last time I used it, LNet was working fine, and the problem persists across all 4 Machines and numerous VMs I've tried.
Has anyone else had this problem and can anyone think of a possible solution?
Thanks & Regards,
Logic_