Here it is:
https://www.dropbox.com/s/742wy18m2u...debug.zip?dl=0

No connection error anymore, this time I didn't copy any defines from your example, probably that's the reason.

Still 1 second lag remains, hope you can help me out. Use button to send 'ping' from delphi to laz.