>>Thanks Mike, curious approach :)
>
>Umm, don't know if I'd call it curious. It's just the way I'd do it, given a decent knowledge of the C runtime. There's lots of good stuff worth investigating in the runtime. For instance, check
this out. Printer drivers are trashing the floating point unit, Fox is crashing, what ever shall we do? Easy, we'll reset the FPU with a function from the runtime (which I'm sure Ed will point out only wraps a Win32 call :-).
>
Actually, I haven't found an entrypoint for _fpreset anywhere outside of the MSVCRT library. HP drivers suck, and until VS SP3 with VFP, if you had clients who insisted on using the buggy but feature-heavy HP drivers, you had no choice but to call it after anything went to the printer...there are a few things in the C library that either don't map directly to an API call, or where the wrapper makes using the C function easier for VFP.
>Now figuring out what was causing the crashes in the first place, that's another story.