google turns up a few issues
http://www.google.co.nz/search?q=create ... hl=en&sa=2
sounds like it's the GDI having the threading issue.
Threads reading from the same file!
-
maw
Here's some more detailed information from the developers of Windows 7 about how the GDI actually can stall Windows because of the current single threaded design and how they have overcome this in Windows 7. It doesn't solve your problem, but I'll bet the problem doesn't occur under Win7!
http://blogs.msdn.com/e7/archive/2009/0 ... mance.aspx
This is also explains why Win7 feels so responsive, because it really is!
http://blogs.msdn.com/e7/archive/2009/0 ... mance.aspx
This is also explains why Win7 feels so responsive, because it really is!
A very interesting read Maw - thanks.
As you say though, probably unrelated to the EMF problem. The links pointed to by Idle demonstrate that the EMFiles resulting from multiple threads simply do not contain all of the GDI instructions which are being sent their way; some instructions are being 'lost' along the way and that is exactly what I am seeing! Incorrect fonts, lines appearing where they shouldn't be etc.
I have decided to implement a simple locking mechanism - no mutexes needed which should allow me to continue with the multiple threads.
As you say though, probably unrelated to the EMF problem. The links pointed to by Idle demonstrate that the EMFiles resulting from multiple threads simply do not contain all of the GDI instructions which are being sent their way; some instructions are being 'lost' along the way and that is exactly what I am seeing! Incorrect fonts, lines appearing where they shouldn't be etc.
I have decided to implement a simple locking mechanism - no mutexes needed which should allow me to continue with the multiple threads.
I may look like a mule, but I'm not a complete ass.

