Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Server problem
Message
De
29/01/1999 04:23:54
David Gibson
Beacons Software
Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00181348
Message ID:
00181698
Vues:
9
David

The COM object is based on a Form class and contains a Timer object - nothing else. I have some code in the Error method of the form which grabs the error method parameters puts them into a string and uses COMReturnError to send the string to the client. I got this from the COM Server sample available on the MS VFP site. Anyway this seems to work fine when I deliberately create an error providing I do not use the timer.

There is no error handling code in the timer object itself ... should there be?

The Timer is disabled in the very first line in its Timer method. I have the interval set to about 500.

PS I am using a form for two reasons
1) I need a container of some sort if I am to include a Timer object
2) I can set its datasession to private this would allow the COM object to be multiple-use but each use would use a separate set of tables - is this a correct assumption?

David
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform