On Tue, 29 Sep 2015, Ondrej Pokorny wrote:

On 29.09.2015 13:50, Michael Van Canneyt wrote:

You may not think this is important, but for beginners, this can be a tremendous aid.
The easier we make it, the better. Lazarus is a RAD environment, after all.

Michael.

OK, I see your point. Yes, I think it is possible and even not that much work to do.

I programmed "multiple instances" handling into Lazarus IDE. It's the same like e.g. Adobe Photoshop or VLC player work - if you start the IDE without files in cmd parameters, the IDE is started. If you start IDE with files, the files are opened in already running instance. You can enable a truly "single instance" (always only single instance allowed) with an environment setting option.

IMO, we should keep the code in CustApp simple and don't do this advanced stuff. Only single/multiple instances option. If single instance is selected, allow to talk with the one single instance through IPC. If there are multiple instances, you cannot talk to other instances.
This should be doable.

What do you think?

Exactly what I had in mind, simple yet functional :-)

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to