<div class="gmail_quote">On Thu, Feb 5, 2009 at 11:33 PM, Alon Mozes <span dir="ltr">&lt;<a href="mailto:amozes77@yahoo.com">amozes77@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>I have carefully cleaned, rebuilt and compiled vtk, itk, and my project using only &quot;MT(d)&quot; references.&nbsp; I can now compile and link with no errors.</div>
</td></tr></tbody></table></blockquote><div><br></div><div>Excellent...</div><div><br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td valign="top" style="font:inherit"><div>But when I launch the app.............<span class="Apple-style-span" style="font-size: 10px; ">&nbsp;0x027CB6B0, 296 bytes long.</span></div><font size="1">
<div>Data: &lt; g&amp; &gt; CD CD CD CD 00 00 00 00 C0 67 26 03 CD CD CD CD </div>
<div>Object dump complete.</div>
<div>The program &#39;[85320] .exe: Native&#39; has exited with code 1 (0x1).</div></font>
<div>&nbsp;</div>
<div>Is this still related to a linker error?</div></td></tr></tbody></table></blockquote><div><br></div><div>No, probably not. (Since you do not have the linker error anymore, but this is still happening...)</div><div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>&nbsp; Does delay loading play a role even though I&#39;m statically linking?</div>
</td></tr></tbody></table></blockquote><div><br></div><div>No, it shouldn&#39;t -- if you are statically linking everything, then there is nothing to delay load...</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>&nbsp; Any tips on figuring it out from here?</div></td></tr></tbody></table></blockquote><div><br></div><div>Two things to try:</div>
<div>(1) Choose &quot;Debug &gt; Exceptions&quot; from the Visual Studio menu bar and check all the boxes to break when an exception is thrown. If one is thrown, copy and paste the call stack and send it to the mailing list.</div>
<div>(2) Step into your program with the debugger (&quot;Debug &gt; Step Into&quot; in the menu) and single step to see who is returning the &quot;1&quot; exit code. (Or just run, and set a breakpoint in the MFC leak reporting code and see how it&#39;s being called...)</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div></div>