Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files
Message
 
 
À
16/10/2000 08:41:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00429701
Message ID:
00429716
Vues:
14
>I had a feeling I might have to do that.
>
>I have built COM DLL's before but have very little experience, do I have to consider anything when using createobject() on the EXE?
>
>Thanks
>Kev

One of the biggest things to think about when using out-of-process COM servers (I think) is their unfettered nature. By definition, they run outside of your thread. As such, amny things could happen to them that don't effect your main program. They could crash for whatever reason, and you wouldn't know abou tit until you tried to access it again. So very robust error trapping within your main program is a must.

Other than that, if you've used COM before there really little difference. Performance is slower because calls have to be marshalled across the COM barrier. This can be alleviated somewhat using With/Endwith more often than you may now. Just keep in mind that every . in an object reference makes a trip acroos the barrier. If you have more than 1 statement associated with a given object, get a reference to it using With/Endwith or assigning a local variable to it and then process it.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform