2015-09-29 16:12 GMT-03:00 Michael Van Canneyt <mich...@freepascal.org>:
> > > On Tue, 29 Sep 2015, Luiz Americo Pereira Camara wrote: > > Unit uniqueinstanceraw >> > > >> Please look carefully >> > > My sincere apologies, > > No problem. To be clear, i don't plead to uniqueinstance be used by fpc or Lazarus at all. This is the message i sent to Lazarus dev list when discussing the possibility of using in Lazarus IDE: " See https://github.com/blikblum/luipack/blob/master/uniqueinstance/uniqueinstanceraw.pas and https://github.com/blikblum/luipack/blob/master/uniqueinstance/uniqueinstancebase.pas This all the code that is needed to implement unique instance feature on top of simpleipc. Such simple logic could even be copied to IDE instead of using the package itself " On the other side, i still think that should be kept out of TCustomApplication. While the simple requirement of checking another instance is easy to implement into TCustomApplication, others may want more features / control (See bug report for examples). Those that need it would duplicate part of the code. Maybe create fpUniqueInstance on top of Ondrej work, making extensible and plugabble? Luiz
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel