{"id":147,"date":"2009-04-07T22:58:34","date_gmt":"2009-04-07T22:58:34","guid":{"rendered":"http:\/\/entrian.com\/blog\/?p=147"},"modified":"2021-07-01T07:14:30","modified_gmt":"2021-07-01T07:14:30","slug":"rational-purify-and-the-microsoft-dia-sdk","status":"publish","type":"post","link":"https:\/\/entrian.com\/blog\/rational-purify-and-the-microsoft-dia-sdk\/","title":{"rendered":"Rational Purify and the &#8220;Microsoft DIA SDK&#8221;: how to make it work"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float:left; padding: 10px 2em 1em 0;\" title=\"Rational Software logo\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2009\/04\/rational-software-logo1.png\" alt=\"Rational Software logo\" width=\"162\" height=\"30\" \/>If you run <a href=\"http:\/\/www.ibm.com\/software\/awdtools\/purify\/\">IBM Rational Purify<\/a> (or PurifyPlus) on a machine that doesn&#8217;t have Visual Studio installed, you&#8217;re likely to be told that &#8220;Purify requires that a module from the Microsoft DIA SDK be installed&#8221;.<\/p>\n<p>(Wouldn&#8217;t it be nice if it told you the name of the module?\u00a0 Or if the Help button worked?\u00a0 But anyway.)<\/p>\n<p>The IBM article <a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?uid=swg21321893\">PurifyPlus requires that the Microsoft DIA SDK be installed&#8230;<\/a> explains that for Visual Studio 2005 you have to run vcredist_x86.exe, but for me at least that had no effect.  Neither did the instructions for Visual Studio 2008.<\/p>\n<p>Having searched and discovered that the file in question is msdia80.dll, <span style=\"background-color: #ff8;\">I copied msdia80.dll from my development machine into C:\\windows\\system32 and ran <code>regsvr32 msdia80.dll<\/code><\/span>.\u00a0 Hey presto, Purify now shows my source code in its output!<\/p>\n<p>Your mileage may vary of course, but perhaps it&#8217;ll work for you too.\u00a0 I believe the same requirement applies to Rational Quantify and Rational PureCoverage, but I haven&#8217;t tried my fix with them &#8211; if you find that it does or doesn&#8217;t work, please leave a comment!<\/p>\n<p>Incidentally, the reason I&#8217;m running Purify on a different PC from my main development PC is that it seems flaky under 64-bit Windows, even when running with a 32-bit process.\u00a0 The application crashes a few seconds after starting.\u00a0 On 32-bit Windows (in a virtual machine) it works like a charm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If IBM Rational Purify tells you &#8220;Purify requires that a module from the Microsoft DIA SDK be installed&#8221;, here&#8217;s how to fix it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-30days"],"_links":{"self":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":1236,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions\/1236"}],"wp:attachment":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}