>>Don't be too hard on yourself...C5 errors are nasty buggers that happen to everyone. In my experience they happen most with "dangling" or otherwise unresolved object references. Since you are passing an object reference in as a parameter, that may be the root of the problem.
>>
>>By the way, do you have VFP SP4 installed? That (or was is SP3?) fixed a lot of C5 errors.
>
>Others have suggested I just have too many nested with ... endwith statements.
>
>I do have VFP SP4 installed. The code runs C5'd only when I was debugging. When I let it run it did not hit a C000005 error (but stopped for other reasons. I wasn't just debugging for fun).
>
>Perhaps I have a computer resource problem?
Did you try CLEAR DEBUG?
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao