OleView freezes / hangs forever on Windows Vista
If you are working with COM and using OleView.exe on Windows Vista to view type libraries, you may notice that the tool hangs forever when trying to open a type library from a file or resource in a DLL. I've encountered this problem myself on every Vista box I've tried it on, and have seen people complaining about it elsewhere.
Just a few days ago, I finally searched for this issue online and came up with a Microsoft KB on the topic. This was truly a DUHH moment since I have neglected to search for it up to this point and could have had this fixed a long time ago instead of working without OleView.
Basically, the problem has to do with the registration of OleVIew's utility COM object in iviewers.dll. It should be located side by side with OleView.exe (typically installed by Visual Studio to its tools directory, or if you are like me, in your private tools directory). Re-register Iviewers.dll to fix it:
> regsvr32 Iviewers.dll
Once this is done, OleView should be back to normal so you can view your precious type libraries.
Also, this issue may happen on other OS if you are copying OleView / iviewers.dll around and the CLSID registration for iviewers.dll becomes incorrect.
This is also described in the KB here: http://support.microsoft.com/kb/176938.
Thanks,
Mike
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
Leave a Comment
About Mike Volodarsky
For the past 5 years, I was the core Program Manager for Microsoft ASP.NET 2.0 and IIS 7.0 products. I drove the design and development of the IIS 7.0 web server core, the IIS FastCGI support, the AppCmd command line tool, the ASP.NET Integrated pipeline, and other special projects around server security, performance, and scalability. Now, I am working on my own on cutting edge web server tech on top of the Microsoft IIS platform, and continue blogging about it here.