Page 2 of 2
Posted: Sat May 02, 2009 1:27 am
by idle
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.
Posted: Sat May 02, 2009 9:53 am
by srod
@Idle : that is great; thanks.
I didn't search myself because previous searches regarding EMF problems on Vista turned up little of any consequence, but this stuff hits the nail right on the head!
Thanks again.

Posted: Sat May 02, 2009 10:33 am
by 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!
Posted: Sat May 02, 2009 11:05 am
by srod
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.

Posted: Sat May 02, 2009 2:42 pm
by idle
I liked the MS answer to it the issue, by design, lol!
EMF's are the round peg bashed through the square hole!
Posted: Sat May 02, 2009 3:28 pm
by srod
idle wrote:I liked the MS answer to it the issue, by design, lol!
EMF's are the round peg bashed through the square hole!
They are bloody useful though!

Posted: Sat May 02, 2009 11:32 pm
by idle
> They are bloody useful though! :Wink:
Yes but only as long as you don't break you're keyboard while trying to bash the peg in the hole.
