[Lazarus] Console application in Mac OS X 10.5
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue May 26 18:46:30 CEST 2009
On Mon, 25 May 2009 17:39:00 +0200
Roland Turcan <konf at rotursoft.sk> wrote:
> Hello lazarus project!
>
> I have created a small application which I use to exchange files
> before the main application starts and afterwards it starts the main
> one.
>
> I have two question:
>
> 1. ExecuteProcess function waits until executed application ends, but
> I don't need to wait. Which function is intended to start process and
> continue?
>
> 2. When I call "./myapp.app/Contents/MacOS/myapp" from terminal, then
> the small helper starts, does its job and starts the main one. When I
> try to start application using double click on myapp.app directory,
> then I see one flicker in taskbar, but the application doesn't start.
> When I exchange the files, that main has the same name as helper one,
> then application starts.
>
> I can find this error in system.log:
>
> May 25 16:11:46 tests-mac-mini
> [0x0-0x1fb1fb].com.company.myapp[42167]: exception at 00000000: May
> 25 16:11:46 tests-mac-mini [0x0-0x1fb1fb].com.company.myapp[42167]:
> Invalid option at position 1: "p".
>
> It is not related to permissions, because both executables have
> execution flag.
The "Invalid option at position" looks like the error message of
the CheckOptions method.
Maybe you forgot to add p to the allowed options?
> What could I check.
Mattias
More information about the Lazarus
mailing list