What is the value of cCmd ?
Also you may try to use procedure from
Re: Running system commands Thread #
1206831 Message #
1207083>I've got this error message when I run my program:
>
>=======================================================
>
>System encountered an unexpected error:
>
>Error # : 1405
>Module : PROCEDURE CHECK_OCX C:\MYPROJECT\UTILITY.FXP
>Line # : 740
>Message : RUN|! command failed.
>run /n &cCmd
>
>=======================================================
>
>This is the first time I've got this error.
>
>The same program runs smoothly on my old PCs (P4 Socket 478 series, both with 2GB RAM).
>
>And I now move to the new system AMD64 and P4M (both with 4GB RAM), I got this message.
>
>I tried to increase the virtual memory ,installed latest OLE packages and service packs. But still the same.
>
>Please help.
If it's not broken, fix it until it is.
My Blog