I have a multithreaded application.
In one thread I create a mapped view of a file I wish to read.
In another thread I create a mapped view of a file I wish to write to.
The access flags are all ok and no errors are returned.
In a third thread, I wish to access the mapped files.
It seems to let me access the filemem, but causes a stack corruption in the thread(s) which created the file mappings (?).
All very weird, I guess that I should map/unmap the view of the mapping object within the thread doing the accessing, yes? no?
Can anyone suggest a more tidy way of performing randomaccess file io across threads?
Posted on 2004-09-20 20:48:51 by Homer