Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone doing multithreading in VFP?
Message
 
À
20/05/2009 16:07:21
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01401052
Message ID:
01401106
Vues:
120
>>>
>>>Currently I have the widget content being generating in code from a multi threaded dll. A timer is creating the objects from that dll. It appears to work except when a long process is encountered that then holds up the production of the rest of the widgets. So in short, it would appear to me that it is not working as a multi threaded dll :(
>>>

VFP will steal 100% of the CPU while processing (esp. queries). Maybe that's what's happening?

>That's exactly the syntax I'm using when I say I've created a multi threaded dll. The problem remains, however, that a long process holds up the remaining widgets to be rendered. Obviously it isn't working as well as I'd hoped.
>
>Did you ever notice this behaviour?

Sorry, no. The primary thing I had used this for was a nice animated GIF and progress bar - I hated how the animation would freeze when my main VFP app. was processing. It kind of defeated the purpose of the animation. Flagging the form as OLEPUBLIC and instanciating it that way got rid of the freezing. I wasn't using any third party library for this.

Is the code you're calling via the DLL just code that does processing (no UI)?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform