Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP loses MSWINSOCK events
Message
From
10/09/2001 12:33:40
 
 
To
10/09/2001 08:45:39
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00554579
Message ID:
00554773
Views:
19
>I try to serve a number of connections simultanously using MSWINSOCK
>I noticed vfp seems to lose events MS WINSOCK ActiveX control events.
>
>When some connections are active, after ConnectionRequest event Dataarrival event will not occur or sendcomplete/error event will not occur.
>
>I read from some winsocket guru page that there is a winsocket ocx designed
>for overlapping i/o. Do you have information about such OCX or DLL ?

I've written an app that does something like this. I setup anywhere from 1 to 30+ UDP listeners and then call a READ EVENTS. I've noticed that if the DataArrival Event fires the VFP code then I never miss any messages. However I have another app that is scanning a table and using 30 sockets to send a request and listen for the response. Since the sending of the request for the 7th instance overlaps with the response from the first, the Data Arrival of this event gets squashed by the VFP code that is sending the request for the next socket.

The other part is that if you CREATEOBJECT then release the MS Winsock control too many times you'll start to C000005 every time you instantiate a new one. Memory leak of some sort.

Basically VFP and mswinsock.ocx don't seem to play well together.

I hear that the Mabry Winsock control is a lot better. The only other one I'd suggest is called hWinsock. You can get that in the ICP package from http://www.vbbbn.com/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform