> I would suggest you use a MMF instead. This is the fastest way to write to > a file, plus you'll have all the data the program writes to the file before > it dies.
I've had cases where that's not true. If the memory manager doesn't get around to writing the dirty pages to the file *or* if for some reason the system chokes hard enough your file will be there but with a zero length (yes, I've had that happen numerous times). The best guarantee is with an IO that completes so you know that the log data is safely at it's destination.
