Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Consistant Crashes on Close Calling App. :(
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Consistant Crashes on Close Calling App. :(
Divers
Thread ID:
00354269
Message ID:
00354269
Vues:
52
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

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform