Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP OLE Server
Message
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
VFP OLE Server
Divers
Thread ID:
00354258
Message ID:
00354258
Vues:
60
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

Répondre
Fil
Voir

Click here to load this message in the networking platform