Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP OLE Server
Message
From
03/04/2000 10:15:10
 
 
To
All
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
VFP OLE Server
Miscellaneous
Thread ID:
00354258
Message ID:
00354258
Views:
63
Has anyone run into the situation where a VB app crashes when closing after calling a VFP OLE Server? A SET OBJECT = NOTHING is in the VB code. The VFP code doesn't call any object into existance. Is there an ideal way to close out the VFP object in VB code or is there an ideal way in the VFP code to insure that the object clears itself. Anyone see an issue with the following?
PARAMETERS strFunction, strTable
** Build the command string
cmdString = &strFunction(&strTable)
** Execute the command string
&cmdString

DEFINE CLASS FoxUtil AS CUSTOM OLEPUBLIC

	FUNCTION MakeCustomFile(strTable)
		USE &strTable SHARED
         ****  Do simple fox stuff here  ****
		RETURN "MyValue"
		clear all
		close all
		release all
	ENDFUNC

ENDDEFINE
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Reply
Map
View

Click here to load this message in the networking platform