[Paraview-developers] ParaView Windows Socket Issue

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon May 12 17:11:29 EDT 2014


I am running into a strange issue with sockets on Windows. Here are the
symptoms:

+ VS9 (VS2008), 64 bit, Windows 7
+ Fails only with Release or RelWithDebInfo builds (never in Debug)
+ client-server tests fail when receiving large chunks of data (although
sometimes it happens for small chunks too)
+ "recv" call fails with error WSAEFAULT (most of the time). I am assured
that the corresponding "send" does indeed happen. In other words, not a
race condition or some other deadlock.
+ I can overcome the problem by simply doing a memset(buffer, 0,
lengthofbuffer) before the "recv" call.

I already tried chunking the recv is 8KB chunks, doesn't help. Has anyone
ever seen something like this, or has any ideas that could work?

Thanks
Utkarsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140512/bffde48e/attachment.html>


More information about the Paraview-developers mailing list