Inter-process communication

前端 未结 9 1448
傲寒
傲寒 2020-12-01 08:42

I have two applications: X and Y.
X is the main application and it handles a lot of XML files. It has a history of more than 10 years and half a dozen techniques have

9条回答
  •  一向
    一向 (楼主)
    2020-12-01 09:18

    I would go the memory mapped files direction, but I would not implement directly in the code path..instead I would go through an intermediate object that would perform the writing to the memory mapped file, this way it could be replaced with one that just discarded the data if it was not in place.

    When the program first starts (or is told to check via a configuration change) the system would either create the stub "do nothing" or the "log via memory mapped files" object. This also gives you the capability of adding a later debugger when the need arises...such as a UDP logger for network logging, etc.

    You can use the "FindWindow" call to see if your debugger is running.

提交回复
热议问题