• 0

[vb 6 / winsock] data arrival called with 0 bytes


Question

my program consists of 2parts client/server they communicate via tcp winsock

it crashes in the data arrival event with a 40006 error (incrrect state) i assume this is because when the data arrival even is called there is 0 bytes :huh: this does not happen every time, about 80%

why would this be happening??

for now i have just added an if in the data arrival to do nothing if its 0 bytes, but i dont think this is a proper solution.

3 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.