Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multithreading VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00909234
Message ID:
00910554
Vues:
20
>I did some testing with that COM component and didn't see main application >waiting for Worker thread to complete. Can you post a sample code that I >can run and repro your problem?

Hi Sergy,

Not at all easy to extract a code sample but I will try to do that tomorrow. When I say that it doesn't return I don't mean the initial timer that returns fine so I do definately have a number of seperate threads.

I then have the Worker1 process continuously looping round a Sleep(1000), again this works fine.

Problem occurs when I do somwthing like:
Main.prg
? "before Worker Process"
oMain.oWorker1.Process()
? "after Worker Process"
If Worker1.Process() takes two seconds to run Main.prg waits for that to complete before continuing.

I can't call a new timer in Worker1 each time I want to run a method because there is an overhead of around 250ms before it fires.

Regards,
Nick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform