On Sun, Feb 28, 2010 at 7:39 PM, Sergei Gorelkin <[email protected]> wrote: > dmitry boyarintsev пишет: >> >> On Sun, Feb 28, 2010 at 8:53 PM, Sergei Gorelkin >> <[email protected]> wrote: >>> >>> There should be no need to test for the IDE. Just write messages to some >>> named IPC channel, and have the IDE (or whatever other "log viewer" >>> application) listen on the other side. IIRC this is how OutputDebugString >>> works, it uses a named pipe for communication. >> >> Is there a ready to use component for that? >> > Well, there is simpleipc unit in fcl-process unit (with client and server > components), but no idea whether it can be used for the intended purpose > without modifications. > > Sergei
Not to state the obvious but... First one/we need to decide what the function will be called, OutputDebugString or DebugLn. Then decide what LCL unit should it be in. Then make an inline function which would just check whether a global function-typed var is set and a call it, for the IDE to hook. Then we think about IPC and such... -Flávio -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
