Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer does not work when compile Multithreaded
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00458173
Message ID:
00459679
Vues:
23
>Hi!
>
>COM objects are quite different than usual VFP objects. It is not recommended to use any other class than "custom" for COM objects.
>
>I don't know exactly if it will work, but try following:
>- Make your COM object as custom object
>- in the INIT event create timer object and assign it to the custom hidden property of main COM object
>- in the Destroy method of COM object free timer object
>- in the methods of COM object you can access internal timer object. Timer event of timer should fire even when COM object is remote.

Thanks for the response. I was creating the timer object incorrectly and had to fix it. Also there is new class to subclass from called "session". I believe this automatically takes care of making sessions for you.

And I have one more question. How does the destroy method get invoked? And how do I unload the COM component from memory?

Again thanks for your help.

Costas Menico
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform