Please look back to Dezipaitor's answer on page 1, I agree with him that the error is likely to be caused because you are specifying a constant value and CreateProcess writes to it.
I wrote a while back about this on the
Jedi Blog:
http://blog.delphi-jedi.net/2009/11/...s-declaration/
It also explains why it works well in Delphi 2007 and not in 2010 (because 2010 uses CreateProcessW and 2007 will use CreateProcessA).