Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrtInfo() causing fatal error -> Fix
Message
From
02/06/2005 11:42:12
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018857
Message ID:
01019423
Views:
15
Hello Jim, Sergey, and Malcolm

Thank you all for your reply! i think Jim is probably right on the button with this, it makes sense and fits the behaviour i have observed.

since i am not able to update my app to vfp9 at this time i am gonna write a wrapper for the PrtInfo() containing all solutions; i am sure thats overkill, but then on the other hand i don't think that some extra cleanup is gonna hurt either <s>.

so again thank you all for your time!



>Most likely errors are caused by faulty printer drivers in combination with outdated VFP version. It seems unlikely to me that call to sys(1104) can fix that. Did you try
DECLARE _fpreset IN msvcrt20.dll
>= _fpreset()
>PrtInfo()
>....
>
>>This is a quick-fix/workaround for a problem i've encountered for a while now.
>>
>>i have a extensive printer selection gui (like ms word has), in which the PrtInfo() function is called several times with different parameters. each time the user chooses a different printer, those functions are called again.
>>
>>on a semi-consistent base i would get a fatal error - always on the PrtInfo() command. never found a solution for this, untill i tried an idea i just got - issue sys(1104) right before each PrtInfo() call.
>>
>>it seem so far that this has solved my error problem. so for anyone who also got this fatal error - try "sys(1104)" right before the PrtInfo() function.
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform