Monday, May 20, 2013 Register  Login

This site uses DNS Made Easy. Use it for reliable and professional DNS services.

RSS Feeds
Categories
  
Blog Archives
  
Blog

Debuging MMC 3.0 snapins in 64-bit OSes

Justin (who didn't leave a last name) left a comment on how to debug MMC 3.0 snapins in Windows 7 x64 and Visual Studio 2008. I want to put this on its own blog post, so that I can find it easier. I'll just repost Justin's comment here:

I recently struck this problem with VS2008 on Windows 7 x64 as well.
I eventually found a solution :)

The solution is to directly use the 32 bit version of mmc at this path:
C:\Windows\SysWOW64\mmc.exe rather than the one in System32.
you still need the -32 flag as in your screenshot.

When you try and debug via "C:\Windows\System32\mmc.exe -32" what actually happens is the debugger attaches to the 64bit version which starts the 32bit version(in SysWOW64) and then closes itself hence why it stops debugging immediately.

You can start the snapin that you are debugging on the command line. This is extremely convinient. Here's a screenshot with Justin's findings:

This is on the project's properties page, on the "Debug" tab.

Now, if I could just figure out how to get the keyboard shortcuts back. They disappeared a couple days ago, and haven't been able to get them back. *boggle*

posted @ Tuesday, November 17, 2009 10:41 PM by Hector Sosa, Jr

Actions:Tweet This Share on Facebook Share on LinkedIn Emakl Permalink del.icio.us

Previous Page | Next Page

COMMENTS

great work cheers bud

posted @ Sunday, January 10, 2010 10:33 PM by brenton


Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above:

Terms Of Use | Privacy Statement | SystemWidgets
Copyright 2002-2013 by SystemWidgets
Google Analytics Alternative