Hi
I just downloaded a copy of the socketx OCX control from Marbry Software. I am trying to use it inside a Visual Foxpro 6.0 application. I am having problems setting up a simple UDP server program. The program breaks when it tries to do a ReceiveFrom() call. I get the following error message:
OLE IDispatch Exception code 0 in Marbry.SocketxObj.1:
Unrecognized error...
Here is the code:
Public Server
Server = createobject("Mabry.SocketxCtl.1")
WITH Server
*-- Set socket type to UDP datagram
.SocketType = 1
*-- Set the blocking mode
.Blocking = .F.
*-- Disable events
.EventMask = -1
*-- Setup the local address and port
.LocalAddress = "10.129.12.159" && My local machine ip
.LocalPort = 3636
*-- Create and bind our socket
.create()
.bind()
*-- Print out socket state
?.State
*--
.ReceiveFrom() && **** Program breaks right
ENDWITH
Is there anything I am doing wrong?
Thanks
Emmanuel Suarez
Datek Online
Emmanuel Suarez
Datek Online
System Developer