[WinError 10038] An Operation was Attempted on Something That is not a Socket

Problem

A WinError 10038 error appears in the Log panel of Mech-Vision. A WinError 10038 error indicates that an operation was attempted on something that is not a socket.

Cause

This issue may be caused by the following reasons:

  • Network: An unstable network may cause a sudden disconnection. If this occurs only occasionally, it could be the reason.

  • Robot program: After the program uses the socket to send information, the program closes the socket immediately without waiting to receive the data returned by the vision system.

Solution

For the issue mentioned above, you can resolve it by addressing the following aspects:

  • Network: Switch to a stable network to ensure a reliable connection.

  • Robot program: Modify the robot program to close the socket connection only after information returned by the vision system is received.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.