Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone doing multithreading in VFP?
Message
De
20/05/2009 17:02:15
 
 
À
20/05/2009 16:35:26
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:
01401128
Vues:
94
>>- If you're working with ActiveXs you may need to experiment with _VFP.AutoYield
>>
>>- It might help to put DOEVENTS calls in looping code
>
>I've been trying these.
>
>>
>>- Never used it, but SYS( 2336 ) is related to MTDLLs
>
>Thanks, I'll investigate.
>
>>
>>Can you tell what the long processes are, such as SELECT - SQL that's taking a long time to run? It's possible to work around some of those issues.
>
>Well I don't think it's the SQL, but, I'm pretty sure its related to the number crunching after that. What possible work arounds are you hinting at?

For SELECT - SQL, you can add a dummy column which is the result of a UDF, which calls DoEvents e.g.
SELECT ;
  SomeColumns ;
  , MyUDF( ) AS DummyColumn ;
  ...

FUNCTION MyUDF

DOEVENTS

RETURN .T.
Can you show us sample code of your number crunching? It is very complex/takes a long time to run?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform