{"id":15163,"date":"2010-01-27T07:00:00","date_gmt":"2010-01-27T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2010\/01\/27\/if-you-are-trying-to-understand-an-error-you-may-want-to-look-up-the-error-code-to-see-what-it-means-instead-of-just-shrugging\/"},"modified":"2010-01-27T07:00:00","modified_gmt":"2010-01-27T07:00:00","slug":"if-you-are-trying-to-understand-an-error-you-may-want-to-look-up-the-error-code-to-see-what-it-means-instead-of-just-shrugging","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20100127-00\/?p=15163","title":{"rendered":"If you are trying to understand an error, you may want to look up the error code to see what it means instead of just shrugging"},"content":{"rendered":"<p>\nA customer had a debug trace log and needed some help\ninterpreting it.\nThe trace log was generated by an operating system component,\nbut the details aren&#8217;t important to the story.\n<\/p>\n<blockquote CLASS=\"q\">\n<p>\nI&#8217;ve attached the log file. I think the following may be part\nof the problem.\n<\/p>\n<pre>\n[07\/17\/2005:18:31:19] Creating process D:\\Foo\\bar\\blaz.exe\n[07\/17\/2005:18:31:19] CreateProcess failed with error 2\n<\/pre>\n<p>\nAny ideas?\n<\/p>\n<p>\nThanks,<br \/>\nBob Smith<br \/>\nSenior Test Engineer<br \/>\n<a HREF=\"http:\/\/207.68.169.170\/tailspin\/index.html\">Tailspin Toys<\/a>\n<\/p>\n<\/blockquote>\n<p>\nWhat struck me is that Bob is proud of the fact that he&#8217;s\na Senior Test Engineer, perhaps because it makes him think that\nwe will take him more seriously because he has some awesome title.\n<\/p>\n<p>\nBut apparently a Senior Test Engineer doesn&#8217;t know what <i>error&nbsp;2<\/i> is.\nThere are some error codes that you end up committing to memory because\nyou run into them over and over.\nError&nbsp;32 is <code>ERROR_SHARING_VIOLATION<\/code>,\nerror&nbsp;3 is <code>ERROR_PATH_NOT_FOUND<\/code>,\nand in this case,\nerror&nbsp;2 is <code>ERROR_FILE_NOT_FOUND<\/code>.\n<\/p>\n<p>\nAnd even if Bob didn&#8217;t have error&nbsp;2 memorized,\nhe should have known to look it up.\n<\/p>\n<blockquote CLASS=\"m\"><p>\nError&nbsp;2 is <code>ERROR_FILE_NOT_FOUND<\/code>.\nDoes the file <code>D:\\Foo\\bar\\blaz.exe<\/code> exist?\n<\/p><\/blockquote>\n<blockquote CLASS=\"q\">\n<p>\nNo, it doesn&#8217;t.\n<\/p>\n<p>\n-Bob\n<\/p>\n<\/blockquote>\n<p>\nBob seems to have shut off his brain and decided to treat\ntroubleshooting not as a collaborative effort but rather as\na game of Twenty Questions\nin which the person with the problem volunteers as little information\nas possible in order to make things more challenging.\nI had to give Bob a nudge.\n<\/p>\n<blockquote CLASS=\"m\"><p>\nCan you think of a reason why the system would be looking at\n<code>D:\\Foo\\bar\\blaz.exe<\/code>?\nWhere did you expect it to be looking for <code>blaz.exe<\/code>?\n<\/p><\/blockquote>\n<p>\nThis managed to wake Bob out of his stupor, and the investigation\ncontinued.\n(And no, I don&#8217;t remember what the final resolution was.\nI didn&#8217;t realize I would have to remember the fine details of\nthis support incident three years later.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer had a debug trace log and needed some help interpreting it. The trace log was generated by an operating system component, but the details aren&#8217;t important to the story. I&#8217;ve attached the log file. I think the following may be part of the problem. [07\/17\/2005:18:31:19] Creating process D:\\Foo\\bar\\blaz.exe [07\/17\/2005:18:31:19] CreateProcess failed with error [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-15163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>A customer had a debug trace log and needed some help interpreting it. The trace log was generated by an operating system component, but the details aren&#8217;t important to the story. I&#8217;ve attached the log file. I think the following may be part of the problem. [07\/17\/2005:18:31:19] Creating process D:\\Foo\\bar\\blaz.exe [07\/17\/2005:18:31:19] CreateProcess failed with error [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/15163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=15163"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/15163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=15163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=15163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=15163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}