Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-09 Thread Graeme Geldenhuys
On 2017-05-08 06:17, nore...@z505.com wrote: > Or there > could already be an examples feature in the docs that I don't know > about. fpdoc already supports "Examples" for some years now - I use it very often in fpGUI and tiOPF's class documentation. A index of all help topics that contain exam

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread Graeme Geldenhuys
On 2017-05-08 10:13, nore...@z505.com wrote: >> In the fpGUI repository there are a few examples of SimpleIPC >> usage. The examples/apps/nanoedit/ uses it. > > That is Cool! Might fork this project on github and create NanoPlug with hehehe... It seems there is a big demand for a simple and small

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread noreply
On 2017-05-08 03:27, Graeme Geldenhuys wrote: In the fpGUI repository there are a few examples of SimpleIPC usage. The examples/apps/nanoedit/ uses it. That is Cool! Might fork this project on github and create NanoPlug with a small plugin system. Had a NotePlug prototype years ago that I nev

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread Michael Van Canneyt
On Mon, 8 May 2017, nore...@z505.com wrote: On 2017-05-08 03:40, Graeme Geldenhuys wrote: On 2017-05-08 06:17, nore...@z505.com wrote: Or there could already be an examples feature in the docs that I don't know about. fpdoc already supports "Examples" for some years now - I use it very o

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread noreply
On 2017-05-08 03:40, Graeme Geldenhuys wrote: On 2017-05-08 06:17, nore...@z505.com wrote: Or there could already be an examples feature in the docs that I don't know about. fpdoc already supports "Examples" for some years now - I use it very often in fpGUI and tiOPF's class documentation.

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread noreply
On 2017-05-08 03:27, Graeme Geldenhuys wrote: On 2017-05-08 06:17, nore...@z505.com wrote: Can't seem to find them in the current docs. In the fpGUI repository there are a few examples of SimpleIPC usage. The examples/apps/nanoedit/ uses it. The examples/apps/debugserver/ uses it. I think th

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread Graeme Geldenhuys
On 2017-05-08 06:17, nore...@z505.com wrote: > Or there > could already be an examples feature in the docs that I don't know > about. fpdoc already supports "Examples" for some years now - I use it very often in fpGUI and tiOPF's class documentation. A index of all help topics that contain exa

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-08 Thread Graeme Geldenhuys
On 2017-05-08 06:17, nore...@z505.com wrote: > Can't seem to find them in the current docs. In the fpGUI repository there are a few examples of SimpleIPC usage. The examples/apps/nanoedit/ uses it. The examples/apps/debugserver/ uses it. I think the examples/apps/ide/ also uses it. All non-LCL by

Re: [fpc-pascal] simpleIPC for all programming languages ?

2017-05-08 Thread Michael Van Canneyt
On Sun, 7 May 2017, nore...@z505.com wrote: Then some small questions arise: is it possible to statically link fpc code into other programs rather than it being a DLL? for example .a files instead of a dll at runtime? Then theoretically, IPC could be linked in statically, not just as a dll

Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-07 Thread Michael Van Canneyt
On Mon, 8 May 2017, nore...@z505.com wrote: I thought I remember some simpleipc examples in the documentation a while ago (years ago).. Can't seem to find them in the current docs. You are probably talking about the ipc examples of the unix unit. Were they moved elsewhere or did I miss

Re: [fpc-pascal] simpleIPC strings

2017-05-07 Thread Michael Van Canneyt
On Mon, 8 May 2017, nore...@z505.com wrote: With simpleipc you can send a string. I am wondering what type of string is safe to send? i.e. what happens with utf8 or unicode? If both sender and receiver use the same defaultsystemcodepage, it should transfer fine. Is it meant to send a re

Re: [fpc-pascal] simpleipc

2008-10-18 Thread Luiz Americo Pereira Camara
Brad Campbell wrote: G'day all, I've been having a play with simpleipc.pp for trying to do cross-platform single instance detection. Ordinarily it behaves perfectly, but I just noticed on Linux that it all comes crashing down if the server application crashes without removing the pipe. I

Re: [fpc-pascal] simpleipc

2008-10-16 Thread Brad Campbell
Luca Olivetti wrote: En/na Brad Campbell ha escrit: What I ended up doing was creating a lockfile and having the server hold an exclusive lock on it. If the server starts and can get an exclusive lock then it know's it is the first process running, and to delete the ipc pipe if it hangs over

Re: [fpc-pascal] simpleipc

2008-10-16 Thread Luca Olivetti
En/na Brad Campbell ha escrit: What I ended up doing was creating a lockfile and having the server hold an exclusive lock on it. If the server starts and can get an exclusive lock then it know's it is the first process running, and to delete the ipc pipe if it hangs over from a crash. Well,

Re: [fpc-pascal] simpleipc

2008-10-16 Thread Brad Campbell
Michael Van Canneyt wrote: On Thu, 16 Oct 2008, Brad Campbell wrote: G'day all, I've been having a play with simpleipc.pp for trying to do cross-platform single instance detection. Ordinarily it behaves perfectly, but I just noticed on Linux that it all comes crashing down if the server appl

Re: [fpc-pascal] simpleipc

2008-10-16 Thread Michael Van Canneyt
On Thu, 16 Oct 2008, Brad Campbell wrote: > G'day all, > > I've been having a play with simpleipc.pp for trying to do cross-platform > single instance detection. > > Ordinarily it behaves perfectly, but I just noticed on Linux that it all comes > crashing down if the server application crashes