By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

Winsock stops throwing dataarrival events?

P: n/a
Hi,

I have a VB6 project that uses a winsock control to receive text
messages over a UDP connection.

It used to work fine. However, when I changed the code to make it more
efficient (ie, less processing was done with each received message), the
program has this weird bug where it will stop acting on the messages
received. The program might work fine for a whole day, receiving
thousands of messages, so it is an intermittent problem.

When it does stop responding, the program itself is still responsive to
user inputs, and a log file I wrote indicated that no new messages were
being received. However, if the program is stopped and restarted, the
messages are again processed.

Another winsock control that is listening on port 80 for web requests
also continues to work.

Has anyone encountered this or know of a possible solution?
Jan 25 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Mark" <ma**@eliminatespam.comskrev i meddelandet
news:45**********************@roadrunner.com...
Hi,

I have a VB6 project that uses a winsock control to receive text
messages over a UDP connection.

It used to work fine. However, when I changed the code to make it more
efficient (ie, less processing was done with each received message), the
program has this weird bug where it will stop acting on the messages
received. The program might work fine for a whole day, receiving
thousands of messages, so it is an intermittent problem.

When it does stop responding, the program itself is still responsive to
user inputs, and a log file I wrote indicated that no new messages were
being received. However, if the program is stopped and restarted, the
messages are again processed.

Another winsock control that is listening on port 80 for web requests
also continues to work.

Has anyone encountered this or know of a possible solution?
I don't know if this helps, but the Winsock ctrl does not just receive
complete msg's from UDP. There can be partly received msg's in the buffer.

/Henning
Jan 25 '07 #2

P: n/a
I had the same problem.The only way to handle it was to close and re-open
the listening control after some time (maybe 1 hour )
"Mark" <ma**@eliminatespam.comescribió en el mensaje
news:45**********************@roadrunner.com...
Hi,

I have a VB6 project that uses a winsock control to receive text messages
over a UDP connection.

It used to work fine. However, when I changed the code to make it more
efficient (ie, less processing was done with each received message), the
program has this weird bug where it will stop acting on the messages
received. The program might work fine for a whole day, receiving thousands
of messages, so it is an intermittent problem.

When it does stop responding, the program itself is still responsive to
user inputs, and a log file I wrote indicated that no new messages were
being received. However, if the program is stopped and restarted, the
messages are again processed.

Another winsock control that is listening on port 80 for web requests also
continues to work.

Has anyone encountered this or know of a possible solution?

Jan 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.