2013/4/5 Graeme Geldenhuys :
> On 2013-04-04 16:34, Dennis wrote:
>> In windows, you can create Mutex. That's how I ensure no other instance
>> of the same program is running.
>
>
> Yes I know that bit, and that is what I did for my old VB6 and Delphi 5
> projects. The question here was not only ab
On 2013-04-05 10:43, Zaher Dirkey wrote:
> Please tell us you success story when you done
All done and it works perfectly under Linux, FreeBSD and Windows. All in
about 30 lines of code, which includes the client and server parts. :)
SimpleIPCServer just works a bit weird though - but that's pro
On 2013-04-04 16:34, Dennis wrote:
> In windows, you can create Mutex. That's how I ensure no other instance
> of the same program is running.
Yes I know that bit, and that is what I did for my old VB6 and Delphi 5
projects. The question here was not only about a "single instance"
application, b
Please tell us you success story when you done
For me i am using SimpleIPC
https://github.com/parmaja/miniedit/blob/master/source/gui/mne.lpr
look at AnotherInstance and MainUnit.pas
Works good in Windows but not tested in Linux.
On Thu, Apr 4, 2013 at 12:08 PM, Graeme Geldenhuys
wrote:
> H
In windows, you can create Mutex. That's how I ensure no other instance
of the same program is running.
YourIDString is a string that you use to uniquely id your program instance .
if OpenMutex(MUTEX_ALL_ACCESS, False, PChar(YourIDString)) = 0 then begin
// First one - the mutex didn't e
On 2013-04-04 19:20, waldo kitty wrote:
> this is one case where i like the single process with multiple tabs but i
> can't
> stand it in my browser(s)...
I have a few apps that need the functionality, but in most cases it will
be user configurable. Everybody has different preferences, and I'll
On 4/4/2013 04:08, Graeme Geldenhuys wrote:
Example of what I want to achieve. Say I have gEdit (Gnome editor) open
and have a file loaded. Now if I am in a console and type 'gedit
someotherfile.txt' [or double click a text file in Nautilus], it doesn't
start a new instance of gedit, the existing
Graeme Geldenhuys wrote:
On 2013-04-04 10:45, Mark Morgan Lloyd wrote:
So far I've had no success porting that to Windows using named pipes,
Ah, thanks for the idea. SimpleIPC should be able to do the trick -
similar to how apps communicate to a DebugServer (using dbugintf and
SimpleIPC units)
Hi Luca,
Thanks for the link.
On 2013-04-04 10:38, Luca Olivetti wrote:
>
> http://wiki.freepascal.org/UniqueInstance
"Just drop in the main form of a LCL application (it's on the System
tab, look for a red full-circle with the digit "1" in the middle)."
I'm running Lazarus 1.1 r40661 FPC 2.
On 2013-04-04 10:45, Mark Morgan Lloyd wrote:
>
> So far I've had no success porting that to Windows using named pipes,
Ah, thanks for the idea. SimpleIPC should be able to do the trick -
similar to how apps communicate to a DebugServer (using dbugintf and
SimpleIPC units).
First instance will s
Graeme Geldenhuys wrote:
Example of what I want to achieve. Say I have gEdit (Gnome editor) open
and have a file loaded. Now if I am in a console and type 'gedit
someotherfile.txt' [or double click a text file in Nautilus], it doesn't
start a new instance of gedit, the existing instance opens th
Al 04/04/13 11:08, En/na Graeme Geldenhuys ha escrit:
> How do they accomplish this? I would like to implement something like
> that for fpGUI, and it must work under all fpGUI supported "desktop"
> platforms.
Look at
http://wiki.freepascal.org/UniqueInstance
Bye
--
Luca
__
Hi,
I'm posting it here, but it is not a Lazarus question, but a general GUI
app (created with FPC) question.
Example of what I want to achieve. Say I have gEdit (Gnome editor) open
and have a file loaded. Now if I am in a console and type 'gedit
someotherfile.txt' [or double click a text file in
13 matches
Mail list logo