<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#000000 size=2>Dear Mr Luis Ibanez:</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What I 
mean is that:&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
face=Verdana>&nbsp;&nbsp;&nbsp;I can build the&nbsp;project in both Debug 
mode&nbsp;and Release mode successfully.&nbsp;&nbsp; And the release version 
could be run correctly.</FONT></FONT></DIV>
<DIV><FONT face=Verdana 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;But in the Debug 
mode,&nbsp; whatever I use F5 or F10, etc in the debug tool,&nbsp; the windows 
system will throw the error with a Error Dilaogue including:&nbsp; (at 
<STRONG>itk::ImageFileReader</STRONG> [reader]-&gt;Update();&nbsp;)</FONT></DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV><FONT face=Verdana 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Debug 
Assertion Failed!<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
Expression: _BLOCK_TYPE_IS_VALID(pHead-&gt;nBlockUse)</FONT></DIV>
<DIV><FONT face=Verdana 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And the call 
stack of the&nbsp;debugger in VS2003 shows that:</FONT></DIV>
<DIV><FONT face=Verdana 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
itk::ImageIOFactory::CreateImageIO(const char * path=0x0139d870, 
itk::ImageIOFactory::FileModeType mode=ReadMode)&nbsp;&nbsp;Line75 + 0x57 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((*k)-&gt;CanReadFile(path))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
*k;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
itk::ImageFileReader&lt;itk::Image&lt;unsigned 
short,2&gt;,itk::DefaultConvertPixelTraits&lt;unsigned short&gt; 
&gt;::GenerateOutputInformation()&nbsp;&nbsp;Line109 + 0x27 
<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
ITKCommon.dll!itk::ProcessObject::UpdateOutputInformation()&nbsp;&nbsp;Line760</FONT></DIV>
<DIV><FONT face=Verdana>&nbsp;&nbsp;&nbsp;<FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; 
itk::ImageBase&lt;2&gt;::UpdateOutputInformation()&nbsp;&nbsp;Line177 + 
0x3e</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Verdana>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
ITKCommon.dll!itk::DataObject::Update()&nbsp;&nbsp;Line343</FONT> </FONT></DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>Here is the code&nbsp;what I use:</DIV>
<DIV>&nbsp;</DIV>
<DIV>typedef&nbsp;&nbsp; itk::Image&lt;unsigned 
short,3&gt;&nbsp;&nbsp;&nbsp;&nbsp; InputImageType;<BR>typedef&nbsp;&nbsp; 
itk::ImageFileReader&lt; InputImageType &gt;&nbsp;&nbsp;&nbsp; 
FixedImageReaderType;<BR>FixedImageReaderType::Pointer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reader;<BR>reader&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
= FixedImageReaderType::New();<BR>&nbsp;</DIV>
<DIV>reader-&gt;SetFileName(&nbsp;filename );</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;try<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
reader-&gt;Update();&nbsp;&nbsp;&nbsp; <STRONG>&lt;- HERE:&nbsp; 
Error&nbsp;occurs&nbsp;&nbsp;&nbsp; ( why does it only occur under the DEBUG 
mode,&nbsp; however,&nbsp; Release mode is okay? 
)</STRONG><BR>&nbsp;}<BR>&nbsp;catch(itk::ExceptionObject &amp; err 
)<BR>&nbsp;{<BR>&nbsp;&nbsp;std::cout&lt;&lt; "ExceptionObject caught !" 
&lt;&lt; std::endl;<BR>&nbsp;&nbsp;std::cout&lt;&lt; err &lt;&lt; 
std::endl;<BR>&nbsp;&nbsp;std::cout&lt;&lt; "while reading fixed 
image"&lt;&lt;std::endl;<BR>&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</DIV>
<DIV><STRONG><FONT color=#ff0000>*BUT*</FONT></STRONG></DIV>
<DIV><STRONG><FONT color=#000000>If I add three statements in the above code 
block.&nbsp; The&nbsp;error <FONT color=#ff0000>disappeared</FONT>.&nbsp; &nbsp; 
Like:</FONT></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>typedef&nbsp;&nbsp; itk::Image&lt;unsigned 
short,3&gt;&nbsp;&nbsp;&nbsp;&nbsp; InputImageType;<BR>typedef&nbsp;&nbsp; 
itk::ImageFileReader&lt; InputImageType &gt;&nbsp;&nbsp;&nbsp; 
FixedImageReaderType;<BR>FixedImageReaderType::Pointer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reader;<BR>reader&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
= FixedImageReaderType::New();<BR>&nbsp;</DIV>
<DIV>reader-&gt;SetFileName(&nbsp;filename );</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>itk::ImageIOBase::Pointer pio;<BR>pio&nbsp;= 
itk::MetaImageIO::New();<BR>reader-&gt;SetImageIO( pio );</STRONG><BR></DIV>
<DIV>&nbsp;try<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
reader-&gt;Update();&nbsp;&nbsp;&nbsp; <STRONG>&lt;- NO error 
HERE</STRONG></DIV>
<DIV>&nbsp;}<BR>&nbsp;catch(itk::ExceptionObject &amp; err 
)<BR>&nbsp;{<BR>&nbsp;&nbsp;std::cout&lt;&lt; "ExceptionObject caught !" 
&lt;&lt; std::endl;<BR>&nbsp;&nbsp;std::cout&lt;&lt; err &lt;&lt; 
std::endl;<BR>&nbsp;&nbsp;std::cout&lt;&lt; "while reading fixed 
image"&lt;&lt;std::endl;<BR>&nbsp;}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Could you tell me the reason of&nbsp;that? </DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Thank you very much indeed.</DIV></DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>jimmy</FONT></DIV>
<DIV><FONT face=Verdana size=2>2007-07-26</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Luis 
Ibanez</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2007-07-25&nbsp;20:40:25</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> 
jimmy</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> 
insight-users</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: Re: 
[Insight-users] Cannot debug projects of ITKApplication.</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><BR>Hi Jimmy,<BR><BR><BR>Can you please do the 
following:<BR><BR><BR>1) In your binary version of ITK, run CMake again and 
Enable 
<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
BUILD_TESTING<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
BUILD_EXAMPLES<BR><BR><BR>2) Go to advanced mode (by selecting the check box on 
the top right)<BR>&nbsp;&nbsp;&nbsp; and search down for the "SITE" variable. 
Make sure that it has the<BR>&nbsp;&nbsp;&nbsp; correct name of your 
computer.<BR><BR><BR>3) Click on the Configure button and then in the OK button. 
<BR><BR><BR>4) Build ITK again, this time it will compile the 1,200 
programs<BR>&nbsp;&nbsp;&nbsp; of the testing suit. Make sure that you do this 
build for the<BR>&nbsp;&nbsp; "Debug" compilation mode. The build could take 1 
to 3<BR>&nbsp;&nbsp; hours depending on the speed of your machine. 
<BR><BR><BR>5) Once the build finishes, open a console window (MS_DOS or 
Cygwin)<BR>&nbsp;&nbsp; and run the "ctest" command with the option&nbsp; -D 
Experimental<BR>
<DIV><SPAN class=gmail_quote><BR>&nbsp;&nbsp;&nbsp; in most machines this will 
look like: <BR><BR>&nbsp;&nbsp;&nbsp; C:\Program File\CMake 
2.4\bin\ctest&nbsp;&nbsp; -D Experimental&nbsp; -C Debug<BR><BR><BR>&nbsp;&nbsp; 
Make sure that you add the "-C Debug" at the end, so the testing<BR>&nbsp;&nbsp; 
will be executed for the Debug compilation mode.<BR><BR>&nbsp;&nbsp; This will 
trigger the execution of the testing framework and will send<BR>&nbsp;&nbsp; the 
results to the public ITK Dashboard.<BR><BR><BR>6) When the submission is 
complete, please let us know, so we<BR>&nbsp;&nbsp;&nbsp; can take a look at the 
results of your submission in the Dashboard. <BR><BR><BR>This will let us know 
if you build is working correctly on Debug mode.<BR><BR><BR>BTW: When you say 
that you 
<BR></SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"cannot DEBUG in *ITKApplication*"<BR><SPAN class=gmail_quote><BR>Do you mean 
that:<BR><BR>&nbsp; 1) you can't build in Debug mode an ITK application of your 
own ?<BR></SPAN><SPAN class=gmail_quote><BR>&nbsp; 2) you can't build in Debug 
mode InsightApplications ?<BR><BR>&nbsp; 3) you can build in Debug, but then 
when using F5, the applications <BR>&nbsp; &nbsp; &nbsp; does not start 
?<BR><BR>&nbsp; 4) Do you get any error messages ?<BR>&nbsp; &nbsp; &nbsp; If 
so, please post to the list the *EXACT* error message that you are 
getting.&nbsp; </SPAN><BR><SPAN class=gmail_quote><BR><BR><BR>We will appreciate 
a more detailed and precise description of your problem. <BR><BR><BR>When you 
send emails to the mailing list, you should describe your<BR>problem as a list 
of step by step instructions&nbsp; that will allow another <BR>person to 
replicate the problem that you are 
encountering.<BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Thanks<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Luis<BR><BR><BR>-----------------------------------------------------------------------------<BR>On 
7/23/07, <B class=gmail_sendername>jimmy</B> &lt;<A 
href="mailto:jimmy_lab@163.com"> jimmy_lab@163.com</A>&gt; wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi, 
  Luis:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thank you for 
  your suggestion. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I am 
  sorry that I have not describe my problem 
  clearly.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I have already 
  generate the MetaImage head (.mhd) 
  beforehand.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And I used 
  ImageFileReader correctly and access the data successfully by my own codes.( 
  It also could be debugged ) 
  <BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;However what confused 
  me is that I cannot DEBUG in *ITKApplication* as I mentioned before, but the 
  RLEASE mode is okay.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Could 
  you give me any other suggestion?<BR><BR>Thank you very much indeed. 
  <BR><BR>Sincerely,<BR>Jimmy<BR><BR>------------------<BR>jimmy<BR>2007-07-23<BR><BR>-------------------------------------------------------------<BR>发件人:Luis 
  Ibanez<BR>发送日期:2007-07-23 21:35:51<BR>收件人:jimmy<BR>抄送:insight-users <BR>主题:Re: 
  [Insight-users] Cannot debug projects of ITKApplication.<BR><BR><BR>Hi 
  Jimmy,<BR><BR>You should have mentioned from the beginning that you<BR>were 
  attempting to read a RAW image 
  file.<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You *CANNOT* 
  read a RAW image file 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directly with the 
  ImageFileReader.<BR><BR><BR><BR>You have the following 
  options:<BR><BR>&nbsp;&nbsp;a) Create a MetaImage header for the RAW 
  file.<BR>&nbsp;&nbsp;b) Use explicitly the RAWImageIO class in your 
  code.<BR><BR><BR>From these two options, method (a) is the recommended one 
  <BR>because method (b) results in hard-coding the image<BR>parameters in your 
  program.<BR><BR><BR>The easiest way of creating a MetaImage header for 
  your<BR>raw image is to use the program:<BR><BR><BR>&nbsp;&nbsp; 
  InsightApplications/MetaImageImporter <BR><BR><BR>It is a command-line dialog 
  that will guide you through<BR>the process by asking you questions about your 
  image.<BR><BR><BR>The filename extension of your MetaImage header must 
  be<BR>".mhd".<BR><BR>Once you have created this header, you can pass it as 
  <BR>the filename to be read by the ImageFileReader.<BR><BR><BR>&nbsp;&nbsp; 
  Regards,<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<BR><BR><BR>============================<BR>jimmy 
  wrote:<BR>&gt; Here is an example of this problem:<BR>&gt;<BR>&gt; I use 
  itk::ImageFileReader [reader] to read a Raw data.&nbsp;&nbsp;After the file 
  name is set, and it runs to <BR>&gt; 
  [reader]-&gt;Update();&nbsp;&nbsp;&nbsp;&nbsp;Error occurs.<BR>&gt;<BR>&gt; 
  The following is call stack of 
  Debugger:<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  itk::ImageIOFactory::CreateImageIO(const char * path=0x0139d870, 
  itk::ImageIOFactory::FileModeType mode=ReadMode)&nbsp;&nbsp;Line75 + 0x57 
  <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  if((*k)-&gt;CanReadFile(path))<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
  *k;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  itk::ImageFileReader&lt;itk::Image&lt;unsigned 
  short,2&gt;,itk::DefaultConvertPixelTraits&lt;unsigned short&gt; 
  &gt;::GenerateOutputInformation()&nbsp;&nbsp;Line109 + 0x27 
  <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  ITKCommon.dll!itk::ProcessObject::UpdateOutputInformation()&nbsp;&nbsp;Line760<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  itk::ImageBase&lt;2&gt;::UpdateOutputInformation()&nbsp;&nbsp;Line177 + 
  0x3e<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  ITKCommon.dll!itk::DataObject::Update()&nbsp;&nbsp;Line343 
  <BR>&gt;<BR>&gt;<BR>&gt; Thanks in advance.<BR>&gt; ------------------<BR>&gt; 
  jimmy<BR>&gt; 2007-07-23<BR>&gt;<BR>&gt; 
  -------------------------------------------------------------<BR>&gt; 发件人:Luis 
  Ibanez<BR>&gt; 发送日期:2007-07-22 22:57:00 <BR>&gt; 收件人:jimmy<BR>&gt; 
  抄送:insight-users<BR>&gt; 主题:Re: [Insight-users] Cannot debug projects of 
  ITKApplication.<BR>&gt;<BR>&gt; Hi Jimmy,<BR>&gt;<BR>&gt; Can you look at the 
  call stack in the debugger ?<BR>&gt;<BR>&gt; Could you trace what is the ITK 
  file, and line <BR>&gt; that is triggering the error ?<BR>&gt;<BR>&gt; Please 
  let us know,<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp; 
  Thanks<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
  Luis<BR>&gt;<BR>&gt;<BR>&gt; ----------------<BR>&gt; jimmy 
  wrote:<BR>&gt;<BR>&gt;&gt;Hi, everyone. <BR>&gt;&gt;<BR>&gt;&gt;I have met a 
  very strange problem when using ITKApplication:<BR>&gt;&gt;I cannot debug or 
  run Applications (e.g. ImageRegistration2D ,IntensityBased2D3DRegistration ) 
  under the DEBUG mode in VS 2003. <BR>&gt;&gt;Here is the Error 
  message:<BR>&gt;&gt;"<BR>&gt;&gt;Debug Assertion 
  Failed!<BR>&gt;&gt;Expression: 
  _BLOCK_TYPE_IS_VALID(pHead-&gt;nBlockUse)<BR>&gt;&gt;"<BR>&gt;&gt;at 
  [m_FixedImageReader or other object]-&gt;Update(); <BR>&gt;&gt;<BR>&gt;&gt;On 
  the contrary, the project can be run very smoothly under RELEASE 
  mode.<BR>&gt;&gt;<BR>&gt;&gt;Can anyone help me?&nbsp;&nbsp;Thanks in 
  advance.<BR>&gt;&gt;<BR>&gt;&gt;--------------<BR>&gt;&gt;jimmy<BR>&gt;&gt;2007-07-21 
  <BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;_______________________________________________<BR>&gt;&gt;Insight-users 
  mailing list<BR>&gt;&gt;<A 
  href="mailto:Insight-users@itk.org">Insight-users@itk.org</A><BR>&gt;&gt;<A 
  href="http://www.itk.org/mailman/listinfo/insight-users"> 
  http://www.itk.org/mailman/listinfo/insight-users</A><BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR></BLOCKQUOTE></DIV><BR></FONT></DIV></BODY></HTML>