Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging an OLE service
Message
From
23/08/2007 13:48:45
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
23/08/2007 13:44:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01249928
Message ID:
01249963
Views:
16
>>I have a client utility sending data strings to a service created using the following EMPS_Server_Class subclass. I have code in the DataArrival procedure that creates a LOG file whenever it is run. The log file does not get created, though I can tell that the port is open, listening and receiving as the client utility does not error out like it (normally) does if the port isn't actively open. Anyone have any ideas what I can do to debug this? I'm unable to walk through the code as it's a service. Unless there is a way to do that?
>
>Puhleeeeze... wrap your lines. I had to put two desks together and six monitors side by side to read this.
>

And yet, no solution.

I just copy/paste, if it's too hard for you to read, then someone else will. Has actually.


>>
>>
>>**********************************************************
>>DEFINE CLASS EMPS_Class AS SESSION OLEPUBLIC
>>
>>	IMPLEMENTS DMSWinsockControlEvents IN "c:\windows\system32\mswinsck.ocx"
>>
>>	oSock = NULL
>>
>>
>>	**********************************************************
>>	PROCEDURE DMSWinsockControlEvents_Error(NUMBER AS INTEGER, DESCRIPTION AS STRING, ;
>		Scode AS NUMBER, SOURCE AS STRING, HelpFile AS STRING, ;
>		HELPCONTEXT AS NUMBER, CancelDisplay AS LOGICAL) AS VOID ;
>		HELPSTRING "Error occurred"
>>		* add user code here
>>
>>	ENDPROC
>>
>>
>>	**********************************************************
>>	PROCEDURE DMSWinsockControlEvents_DataArrival(bytesTotal AS NUMBER) AS VOID ;
>		HELPSTRING "Occurs when data has been received from the remote computer"
>>
>>		*		strData = SPACE(256)  && Define string to pass to GetData
>>
>>* JJ - TESTING ONLY
>>STRTOFILE('DataArrival: ' + DTOS(DATE()) + +CHR(10) + CHR(13),'c:\fmsrun\logfile.log',1)
>>
>>		THIS.oSock.OBJECT.GETDATA(@strData)
>>
>>		lnStart = SECONDS()
>>		DO WHILE THIS.oSock.State = 6 AND SECONDS() - lnStart <= 5
>>			DOEVENTS
>>		ENDDO
>>
>>		IF THIS.oSock.State = 7
>>			* Testing code to parse HL7 billing data from ;
>		Medinotes Client to EM tables
>>			=Convert_HL7_Billing_Data(strData)
>>		ENDIF
>>
>>	ENDPROC
>[ snip snip ]
>>ENDPROC
>>*******************************************************************************
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform