>Hi, > >I was wondering if anyone has seen anything like this happening before. >When running a report (which previously seemed to be working fine) from within an application I have suddenly been faced with ' caused an exception 10H in module VFP500.DLL ...'. >There has not been any significant changes to the application, I've tried rebulding the app on various machines, checked versions of DLL's and even changed the code back to what it was before the problems began.
It's often a problem with Printer Drivers; specific problems involving HP-supplied drivers that do not restore the state of the FPU/MMX registers on return from calls to the GDI. The solution is to use an MS-supplied driver from an OS distribution for a compatible printer rather than the HP driver, or to call _fpreset in MSVCRT20.DLL after each and every call to the GDI involving the printer driver, including report previews.