I have a multithreaded application which generally runs fine.
However, I now have the main process and a separate thread both reading from the same binary file at the same time. I am experiencing problems with this - nothing major, but enough to suspect that there is a problem here and thus I am wondering if this is actually possible? It is probably not advisable, but that's not what I am after here!
Is it possible for two threads to read from the same file simultaneously under Windows?
The program is so complex that I am not 100% sure the problem is due to reading from the file; it could be a gdi problem between the threads etc.
Anyone have any experience with this?
I will probably switch to using a timer and have all file accesses performed within the main process; I suspect this will fix my problem!
Thanks.



