Hi Agnes
>Why can't you debug the exe? If you compile the exe with debuginfo on on run it from VFP's commandline it should be no problem. Does it make a difference if you run the exe from ide or from explorer?
Thanks, I tried it this way and the error does not happen. I have DO myexename.exe from the command prompt and it works just as fine as if I did a DO main.prg.