Hi, Fabio.
The code bellow doesn't gave me any C5 using Visual FoxPro 8.0, SP 1. Can you try to reproduce it in other machines?
See you,
In fact it is not deterministic.
On my Compaq nx7000 with WXPsp1 italian, it fire a C5 in VFP8sp1,
but i use a not default options set, and i have my objects running on IDE.
But i get a C5 if i run it without open it or do other actions (only DO bug335.prg ),
in VFP7SP1 with default options,
in VFP6SP5 with default options.
try with this:
Define a prg for the code.
save.
close VFP.
open VFP.
on Command exec
DO ....PRG