Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxtools
Message
From
02/08/2000 22:19:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Foxtools
Miscellaneous
Thread ID:
00400193
Message ID:
00400193
Views:
48
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??
Next
Reply
Map
View

Click here to load this message in the networking platform