>This is in an FLL. Actually, it occurred to me last night that the reason that this may have been failing was that I was calling _EdGetEnv with an invalid WHandle. I assumed VFP would always pass me a valid one, but it can't in every scenario depending on what is selected. I tried out the idea this morning and (at least in the few scenarios I could cause it to fail in the past) it seems to have fixed it. Crossing my fingers...
Yes, an invalid WHandle will definitely cause an exception in _EdGetEnv.
--sb--