Login  
Search All Forums
Dart Home | PowerTCP Server for ActiveX | Custom Development Reply | PowerTCP Server for ActiveX Topics | Forums   
AuthorForum: PowerTCP Server for ActiveX
Topic: Server control stops receiving data
frizzo

From: gargbba grove, CA USA
Posts: 13
Member Since: 02/08/05
posted October 18, 2005 2:57 AM

I am running into a situation where the Server's Receive event no longer fires even though clients send it data. The server can still send data to the clients and they receive it though. If I break into program and look at the children of the server control, I see that their ReceiveBufferSize is about 1000 or so (and grows depending on my patience). 

I am using VB6, SP5. Am I missing something simple here? What can disrupt the Receive event?

Thanks
frizzo

From: gargbba grove, CA USA
Posts: 13
Member Since: 02/08/05
posted October 18, 2005 3:06 AM

I meant ReceiveBufferCount, not ReceiveBufferSize.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 18, 2005 9:18 AM

Are you blocking for more than a few seconds inside the ReceiveEvent?

Are you calling DoEvents in the ReceiveEvent? If so, comment it out and see if the problem remains.

frizzo

From: gargbba grove, CA USA
Posts: 13
Member Since: 02/08/05
posted October 19, 2005 1:17 AM

I am probably blocking about 1 second inside the Receive Event. Is this a problem? Does the control not keep the data? How can I work around it?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 19, 2005 8:50 AM

The control's events are not re-entrant, when inside one, others will not fire.

Are you calling DoEvents in the code that runs in the Receive event?
frizzo

From: gargbba grove, CA USA
Posts: 13
Member Since: 02/08/05
posted October 24, 2005 10:52 PM

No, I probably don't call DoEvents while inside the Receive event. Should I be?

But anyway, let's say data did get lost while my app was busy doing something else. However, even after my code has processed, I never see a Receive event again. Should this be happening?

Btw, sorry to get back to you once a week. I only work on this stuff once a week.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 25, 2005 7:35 AM

No, you should not. I was suggesting that because sometimes people do it and get strange results.

What you are describing should not be happening. If you can isolate the problem to a set of reproducible steps please let me know ASAP.
frizzo

From: gargbba grove, CA USA
Posts: 13
Member Since: 02/08/05
posted October 25, 2005 8:36 PM

Tony,

Does TCP Server Tool have any back doors, any escape sequences that make the control stop receiving data?

Because that's what I found. I simply changed the message a bit and everything works perfectly fine. I change it back and it no longer works.

Regards.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 26, 2005 8:51 AM

No, not that I am aware of. Can you send us instructions on what to send to see the problem? If so, please email support@dart.com
Reply | PowerTCP Server for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX