Hi Brian,
using a file for inter process communication is a risky business, because it is not possible to synchronize the reading and writing. The only way is to 'lock' the file, but then the two threads must handle errors on file opening, and if one application crashes leaves the file locked. And if both threads need to write into the file, that is a big nightmare (I have been there...)
Not that cannot be done, but only for short messages, and usually as a one-way only (one thread reads and the other writes)
Marco
|