Tigraine
Daniel Hoelbling talks about .NET

Print dialog not showing up on Windows 64 Bit on a AMD CPU

January 22nd, 2010 . by Daniel Hölbling

Imagine the following: Clint calls telling me “Hey Daniel, I just got a new computer with Windows 7 64 Bit installed, everything is working great so far. The Software you wrote a year ago works fine on it too, only problem: I can’t print”

My immediate reaction: “Reboot the system” (ok kinda lame, but I have spent too much time with problems that went away through a reboot to not suggest it).
Well, but the reboot didn’t help here. Even after rebooting the print dialog was still not showing up.

Now, I know for a fact that the Software runs fine on Win7, I also know it runs fine on Win7 x64 (since I developed it running both x32 and x64 Win7 Beta builds back in the day). And since I am using the PrintDialog class provided by the .NET framework I wasn’t really sure what  could be the issue. I mean, hey that’s a framework class, those things are supposed to run cross platform and be CPU ignorant. But hey, why not simply ask Google the most stupid question I could think of: “windows 64 .net print dialog” ..

And the answer was right there on Microsoft’s MSDN page as a remark:

Also, The PrintDialog class may not work on AMD64 microprocessors unless you set the UseEXDialog property to true.

WTF? (Ok more words come to mind, but since I don’t want to get hatemail for my language I’ll leave it at that).

We are talking about a class in the .NET BCL that is supposed to work cross plattform (at least Windows), be completely CPU ignorant (fully managed), and yet I have to set UseExDialog to true to see this dialog on a AMD CPU? Are you kidding me Microsoft?

Well, the fix was quite easy (thankfully). I went into my PrintDialogFactory and changed one line of code, packed a new release and sent it to my client, yet my confidence in BCL classes has been severely shaken.

I really don’t know anything about the reasons for this odd (to say the least) behavior, but I can say that I am a bit sad to see it monkey-patched like this. Especially in a VM environment like the .NET framework I expect Microsoft to solve their system-specific problems under the hood where I can’t see them and don’t have to care about them.


View Comments to “Print dialog not showing up on Windows 64 Bit on a AMD CPU”

  1. comment number 1 by: Dave Milne

    It doesn't work on an Intel Quad Core 6600 processor either … Thank goodness for your post !

  2. comment number 2 by: Online Printing

    Well i was looking for a solution to same problem too.

  3. comment number 3 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  4. comment number 4 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  5. comment number 5 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  6. comment number 6 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  7. comment number 7 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  8. comment number 8 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  9. comment number 9 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  10. comment number 10 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  11. comment number 11 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  12. comment number 12 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  13. comment number 13 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  14. comment number 14 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  15. comment number 15 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  16. comment number 16 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  17. comment number 17 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  18. comment number 18 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  19. comment number 19 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  20. comment number 20 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  21. comment number 21 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  22. comment number 22 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  23. comment number 23 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  24. comment number 24 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  25. comment number 25 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  26. comment number 26 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  27. comment number 27 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  28. comment number 28 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  29. comment number 29 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.nnAnd thx for your hint. It worked!

  30. comment number 30 by: hans

    It is not an AMD problem only. I got the same printing problem with INTEL i5 Core.

    And thx for your hint. It worked!

Leave a Reply

Name

Mail (never published)

Website

blog comments powered by Disqus