Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a COM exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Closing a COM exe
Divers
Thread ID:
00750043
Message ID:
00750043
Vues:
41
I have a VFP7 COM class based off of a timer that I am calling from a c# service. I am having a hard time releasing the exe from c#. I have added a Quit method to my class which closes resources and even calls quit, but I still see my VFP exe in the task manager.
Any ideas?

This is about what I am doing

**VFP Class
DEFINE CLASS myTimer as Timer OLEPUBLIC
FUNCTION INIT
  this.enabled = .t.
  this.interval = 2000
ENDFUNCTION
FUNCTION TIMER
...
ENFUNCTION
FUNCTION Quit()
  this.enabled = .f.
  CLOSE TABLES
  RELEASE ALL EXTENDED
  
  QUIT
ENDFUNCTION

ENDDEFINE
then from c# in the stop method
if (this.objMyTimer != null)
{
  this.objMyTimer.Quit();
  this.objMyTimer = null;
}
Bill Mittenzwey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform