now it works!<br><br>Could you please also fix the same bug in the other examples?<br><br>thank you,<br>seba<br><br><div class="gmail_quote">On Thu, Apr 10, 2008 at 6:17 PM, Matt Turek <<a href="mailto:matt.turek@kitware.com">matt.turek@kitware.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I think I've fixed the logger issue. There was a local variable, m_LogFile, in the constructor of NeedleBiopsyNew that was being passed by reference to the logger. m_LogFile was going out of scope once the constructor exited, so any reference to m_LogFile later would cause a crash.<br>
<br>
Thanks for the bug reports and your continuing work on IGSTK.<br>
<br>
Matt<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Another thing, my application crashes (debug/release) if I set the igstkLogMacro to DEBUG. Until now, I've been using ::INFO, which skips most of the messages to the logger. I tracked the crash upto itk::Logger<br>
</blockquote></blockquote></div>
-- <br>
Matt Turek, Ph.D.<div class="Ih2E3d"><br>
R&D Engineer<br>
Kitware, Inc.<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br></div>
Phone: 518-371-3971 x142<br>
email: <a href="mailto:Matt.Turek@kitware.com" target="_blank">Matt.Turek@kitware.com</a><br>
<br>
</blockquote></div><br>