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:
00910544
Vues:
19
>Nick, there's also this one at the bottom of the page:
>Demo: Multi Threaded C++ client
>by Calvin Hsia of Microsoft...

Claude, thanks for that it was a very interesting article.

However, I still haven't managed to crack the multithreading in VFP issue. I recall you saying somewhere that you were also interested in finding a solution to this problem so I thought you might like to know how far I have got at the moment.

I can create a number of .exe (out-of-process) worker threads each of which has a 1ms timer which effectively creats a new thread and returns control to the main process. Now this works well in that each does it's own thing and they do not interfere with each other.

If Main calls a method in Worker1 the processing does actually happen in Worker1, I have checked this in task manager. Problem is that Main is blocked until Worker1 has finished the method. Any idea how to call a method via COM without waiting for the result?

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

Click here to load this message in the networking platform