So, put a sleep(1) there instead of the fsync().

Interesting. That seems to have done it. Will do more testing to be sure, but that seems to have taken care of it.

THANK YOU!

(Had to use the Win32 version of that command, though. Capital S, and the value is in milliseconds so it was Sleep(100); but the point is that it worked.)
_________________________
Tony Fabris