Author Topic: Memory mapped file remote logger example.  (Read 3344 times)


  • Administrator
  • Member
  • ******
  • Posts: 8549
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Memory mapped file remote logger example.
« on: November 21, 2012, 10:32:24 AM »
This is the second version of a remote logger that addressed a task that Sinsi was designing but it serves as an example of using both a memory mapped file and a custom message to communicate between two running applications. It is an operating system designed method of communication and it has the advantage of being able to handle very large amounts of data between application where necessary. This example only writes 4 DWORD variables and 4 x 1k string buffers to a 64k memory mapped file but it can handle far bigger amounts of data and it is fast in that it only requires one PostMessage to pass all of the data between apps.

There are two apps, start the send app then start the logger app. Buttons should be obvious.  :biggrin:
hutch at movsd dot com    :biggrin:  :skrewy:


  • Member
  • *****
  • Posts: 11588
  • Assembler is fun ;-)
    • MasmBasic
Re: Memory mapped file remote logger example.
« Reply #1 on: November 22, 2012, 03:05:38 AM »
Works like a charm, provided you remove the H: in rsrc.rc  ;)