Re: [fpc-pascal] TProcess question

2008-12-14 Thread Bart
> > If you try to execute a process that is non-executable (like for > > example a word doc), then on Windows an exception is raised and > > GetLastOSError returns 193. > > > > If you try this on (my) linux, no exception is raised and a > > non-functional childprocess is forked (you can see i

Re: [fpc-pascal] TProcess question

2008-12-13 Thread Michael Van Canneyt
On Fri, 12 Dec 2008, Bart wrote: > Hi, > > Just played with TProcess for the first time. (I come from Delphi 3) > I observed some oddities (?, or maybe I'm just dumb ...). > > If you try to execute a process that is non-executable (like for > example a word doc), then on Windows an exception i

[fpc-pascal] TProcess question

2008-12-12 Thread Bart
Hi, Just played with TProcess for the first time. (I come from Delphi 3) I observed some oddities (?, or maybe I'm just dumb ...). If you try to execute a process that is non-executable (like for example a word doc), then on Windows an exception is raised and GetLastOSError returns 193. If you t