Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-07

Execution of shell commands from within Mac OS X Apps

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Karl-Michael Schindler

Hi,

I tried to execute a shell command from a fpc program in several ways, for example with ExecuteProcess from SysUtils. This does not work, if I build a .app bundle. The strange thing is that it works if I double click Example.app/Contents/MacOS/Example, but it does not work if I double click the Example.app. This log shows:

An unhandled exception occurred at $000F2FF1 :

Is this a security measure?

Greetings Michael Schindler aka mischi.