Thanks, Edgar, for responding.
The module is AR, specifically the programs ARPSTM and ARSTMF. I am having to bypass all the REPORT code. My client has a highly modified invoice, with subtotals of the invoice detail, followed by two different types of SHIP classes of items, with subtotals of each, and finally a grand total of the entire invoice. The REPORT command would work fine for the detail items within the main body of the invoice, but the complicated SHIPping items, with their subtotals, just don't lend themselves well to the Report Generator.
Also, for some reason, my modified code--copied from the Vision Point 9 system--fails to get a final total for the invoice. Same code, same processing, but no grand total.
Then, if I run ARPSTM with the modified code, it goes straight through, prints nothing, and gets the "C0000005" error. If I build in breakpoints in ARPSTM, the printing works exactly as it should, except for the final total, but I still get the FoxPro error.
Now, here's something interesting. I can take the Vision Point 9 programs, recompile them in VFP 6.0, and they work like a champ--EXACTLY as they do in VP 6 with the old DOS-based FoxPro 2.6.
I did have an inspiration I'm going to try tomorrow. Obviously, when I modified ARPSTM and ARSTMF, I recompiled them with the SP5 upgraded VFP 6.0. BUT, I didn't recompile the other programs leading up to that (which, by the way, are all identified in the C0000005 error output): VPW, VP, SYSMULT, ARAPP, and ARMENU. Think I'll recompile all those with SP5 and try it then.
Best regards,
Jim Lamb