[fpc-devel] simpleipc issues

Ondrej Pokorny lazarus at kluug.net
Tue Sep 29 14:16:52 CEST 2015


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?

Ondrej



More information about the fpc-devel mailing list