Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Consistant Crashes on Close Calling App. :(
Message
From
03/04/2000 10:26:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Consistant Crashes on Close Calling App. :(
Miscellaneous
Thread ID:
00354269
Message ID:
00354269
Views:
54
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 any issues 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

Next
Reply
Map
View

Click here to load this message in the networking platform