Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Server problem
Message
 
 
À
28/01/1999 11:08:46
David Gibson
Beacons Software
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00181348
Message ID:
00181627
Vues:
9
David,

Does your COM object and all other contained objects have an overridden Error method in their class tree to provide object level error handling?

Also the timer.Timer() method is still executing for the duration of the COM method. Are you disabling the timer when it fires?

>I have created a COM object (called exporter) which includes an export method. This method can take several mins to run.
>
>Say a client program does this:
>ox = CREATEOBJECT("exporter")
>ox.Export()
>The client has to wait until the export method finishes.
>
>Instead I put a timer into my COM object (which is based on a Form class). The Export method just enables the timer and ends. When the timer fires it runs the 'real' method (now called do_export).
>This gives me asynchronous control and works really well. If the client wants to check progress in the COM object it has properties such as PercentDone and Busy etc.
>
>The bad news - the error handling fails if a timer is used. Instead of my Error method kicking in with my COMReturnError message I get:
>Fatal error: Exception code=C00000FD every time.
>
>If I call my method directly - error handling is as advertised - indirect it via a timer - Fatal Error.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform