Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxtools
Message
De
03/08/2000 00:44:28
Walter Meester
HoogkarspelPays-Bas
 
 
À
02/08/2000 22:19:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00400193
Message ID:
00400231
Vues:
17
David,

Just a few days ago, I got the same error message from a client.
since the error occured in the follwing line,

IF MainHwnd() = GetActiveWindow()

where mainhwnd() is the foxtools function and the GetActiveWindow() function is an API call, I figured that it would have to do with foxtools. We've also determined that it is occurring on occasion. Until now we have not determined the cause of it, but my first bet is to check the HP printer drivers.

Please let me know if you solved the problem, and more importantly: how ?

Walter,




>On occasions my users get an error 2028...
>"API call caused an exception."
>
>It invariable occurs just after a print job, that might switch the default printer, where I call the Foxtools Words() function shortly afterward.
>
>I can work around it by running this code just before the error would normally occur.
>
>
onErr= on('ERROR')
>on error *
>words('abc def')		&& avoid "API Caused an exception" error
>on error &onErr
>
>Once Words() errors it runs fine the next time. Very weird! Has anyone seen this?
>What the heck has Words() got to do with printing??
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform