[Lazarus] Simple ipc server fatal error on start - 0xc000007b
Giuliano Colla
giuliano.colla at fastwebnet.it
Sat Apr 1 18:05:19 CEST 2023
Il 01/04/2023 14:50, Jean SUZINEAU via lazarus ha scritto:
> You can uses pipes too, basically just two files no need of
> networking, one for reading (delphi to freepascal), one for
> writing(freepascal to delphi).
>
> I made last year a small app to communicate with Audacity
> (https://www.audacityteam.org/) using a specific plugin
> (https://manual.audacityteam.org/man/scripting.html).
>
> You can find there the unit/class which manages the communication:
> https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas
>
>
> In my case I used pipes already created by Audacity.
> For your problem I think it would be more appropriate to use FpPipe
> (although I personnaly never used it):
>
> https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html
>
> I think you will find something similar on Delphi 7 side.
>
>
I'm afraid that Jean Suzineau is right, except for the reference to
FpPipe which is Unix specific.
Named pipes (or FIFO's) may be the simplest solution, in place of a
bloated Indi10, useful if you need something quite complex, such as a
securized web server , or of the tcp/ip sockets of NetChat.
Just a file you write on one side and read the on the other side. Two
named pipes for bidirectional communication, if necessary.
You'll find a lot of examples just looking for Delphi pipes or Delphi
named pipes on the web.
https://github.com/Poznamenany/Named_Pipes_in_Delphi
is just one for Delphi side (but it's ok also for Lazarus).
You may find useful the discussion here, to avoid common pitfalls:
https://forum.lazarus.freepascal.org/index.php?topic=44251.0
Giuliano
--
Do not do to others as you would have them do to you.They might have different tastes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230401/1412f0a9/attachment.htm>
More information about the lazarus
mailing list