I'd be in favour of Hans-Peter's solution until something more standard works.
This would at least allow things to work now, even if it is a workaround. As opposed to the current system, which only works in one case. Remember it is not just the Application.ProcessMessages that is the problem. It also occurs if you have more than 1 form between .Initialise and .Run Dominique. On Fri, 30 Oct 2009 19:34:11 +0100, Hans-Peter Diettrich <[email protected]> wrote: > dmitry boyarintsev schrieb: > >> It doesn't work as expected from OSX point of view, because >> AEOpenDocument is used to start an application with opening some file. >> For other systems command-line parameters are used. >> >> I'm not sure how to fix the problem, yet. So i far i can suggest not >> to use Application.ProcessMessages in component initialization. > > When an application *can* be called with command line arguments, IMO a > translation into such an argument is the best solution. When an > application expects such arguments, it will check and process the passed > arguments, regardless of how they have been supplied. > > DoDi > > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
