Login  
Search All Forums
Dart Home | PowerTCP Winsock for ActiveX | Custom Development Reply | PowerTCP Winsock for ActiveX Topics | Forums   
AuthorForum: PowerTCP Winsock for ActiveX
Topic: Multiple SEND Events??
rklenotiz

From: Rochester, NY USA
Posts: 19
Member Since: 08/08/03
posted August 12, 2003 12:56 PM

Hello, has anyone seen this situation? It appears that I am receiving multiple SEND events in an unusual way. Doesn't happen very often.
This is VB6. To trace this out, I added a LIST1 box and simple list1.additem "Entering SEND Event" at the top of the event and list1.additem "Exiting SEND event" as the last line. Normally, I will see one Enter and one Exit message. However, now and then I will see:

Entering SEND Event
Entering SEND Event
Exiting
Exiting

Of course the control is BLOCKED when the 2nd event fires.

Any ideas what causes this and how to remedy??
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 12, 2003 1:00 PM


If you are using the send event I would think you were writing a non-blocking program.

What are you doing in the send event? Are you calling Send again? If so and the timeout > 0, you would see that.
rklenotiz

From: Rochester, NY USA
Posts: 19
Member Since: 08/08/03
posted August 12, 2003 1:06 PM

Yes, you are correct, it is a non-blocking program on the server side. Uses daemon to accept connections.  This is for a file transfer. When the SEND event fires, I then know to send another block of data...but I don't do that in the event itself. What seems odd is that this works 99% of the time but every now and then I see the 2 SEND events. Timeout is always 0. The event code is very very short...just a few lines of code.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 12, 2003 1:10 PM

It sounds like you must be calling Send again elsewhere while you are still in the Send event.

If you want me to investigate further, please provide a way to duplicate the problem.

rklenotiz

From: Rochester, NY USA
Posts: 19
Member Since: 08/08/03
posted August 12, 2003 1:10 PM

Oops, correction. I indicated I see two EXIT messages.....I do not...I never see the 2nd exit and the control remains blocked until I close the connection.
rklenotiz

From: Rochester, NY USA
Posts: 19
Member Since: 08/08/03
posted August 12, 2003 1:11 PM

Let me see if I can make a tiny test case and duplicate it.....
Reply | PowerTCP Winsock for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX