Your snippet makes no sense (although none of this explains the crash).
Did you really mean to execute the child asynchronously? You're acting as if you want the child to end before proceeding. If so, you want system(@cmd), not system(1, @cmd).
In reply to Re: Problem with 'system' function in Windows Vista
by ikegami
in thread Problem with 'system' function in Windows Vista
by jdtoronto
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |