[fpc-devel] simpleipc issues

Michael Van Canneyt michael at freepascal.org
Tue Sep 29 13:50:54 CEST 2015



On Tue, 29 Sep 2015, Ondrej Pokorny wrote:

> On 29.09.2015 12:52, Michael Van Canneyt wrote:
>> 
>> I added it to fpc/packages/fcl-base. It compiles OK, there are no dangerous 
>> dependencies except sysutils and classes.
>> 
> Thanks!
>
>> Juha, if you want to implement the single IDE instance, then I would like 
>> to ask you to implement this in custapp.pp. This is useful functionality 
>> for all kinds of applications, and is since very long on my todo list.
>> 
> I don't think it is needed (see comments further down).

I think it is very much needed.

>> I think the functionality can be split out in 2 parts:
>> - Make sure a single instance is running.
> The IPC does it by design - you start a server and you have the check, so you 
> get it. IMO it's not needed to make another component above AdvancedIPC with 
> exactly the same functionality but different name.

I am not proposing to make a new class.
I want a property "SingeInstance" in CustApp which activates this automatically.

>
>> - Sending messages to running instance.
> Again, IPC does it.

I know that, I simply want it integrated in CustApp.

By doing this, 'Single instance' can be a simple flag in the project options.

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.



More information about the fpc-devel mailing list