<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> BUILD_TESTING<br> BUILD_EXAMPLES<br>
<br><br>2) Go to advanced mode (by selecting the check box on the top right)<br> and search down for the "SITE" variable. Make sure that it has the<br> 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> of the testing suit. Make sure that you do this build for the<br> "Debug" compilation mode. The build could take 1 to 3<br> 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> and run the "ctest" command with the option -D Experimental<br><div><span class="gmail_quote"><br> in most machines this will look like:
<br><br> C:\Program File\CMake 2.4\bin\ctest -D Experimental -C Debug<br><br><br> Make sure that you add the "-C Debug" at the end, so the testing<br> will be executed for the Debug compilation mode.<br>
<br> This will trigger the execution of the testing framework and will send<br> the results to the public ITK Dashboard.<br><br><br>6) When the submission is complete, please let us know, so we<br> 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> "cannot DEBUG in *ITKApplication*"<br><span class="gmail_quote">
<br>Do you mean that:<br><br> 1) you can't build in Debug mode an ITK application of your own ?<br></span><span class="gmail_quote"><br> 2) you can't build in Debug mode InsightApplications ?<br><br> 3) you can build in Debug, but then when using F5, the applications
<br> does not start ?<br><br> 4) Do you get any error messages ?<br> If so, please post to the list the *EXACT* error message that you are getting. </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 that will allow another <br>person to replicate the problem that you are encountering.<br><br>
<br><br> Thanks<br><br><br> Luis<br><br><br>-----------------------------------------------------------------------------<br>On 7/23/07, <b class="gmail_sendername">jimmy</b> <<a href="mailto:jimmy_lab@163.com">
jimmy_lab@163.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, Luis:<br><br> Thank you for your suggestion.
<br> I am sorry that I have not describe my problem clearly.<br> I have already generate the MetaImage head (.mhd) beforehand.<br> And I used ImageFileReader correctly and access the data successfully by my own codes.( It also could be debugged )
<br><br> However what confused me is that I cannot DEBUG in *ITKApplication* as I mentioned before, but the RLEASE mode is okay.<br> 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> You *CANNOT* read a RAW image file
<br> directly with the ImageFileReader.<br><br><br><br>You have the following options:<br><br> a) Create a MetaImage header for the RAW file.<br> 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> 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> Regards,<br><br><br> Luis<br><br><br>============================<br>jimmy wrote:<br>> Here is an example of this problem:<br>><br>> I use itk::ImageFileReader [reader] to read a Raw data. After the file name is set, and it runs to
<br>> [reader]->Update(); Error occurs.<br>><br>> The following is call stack of Debugger:<br>><br>> itk::ImageIOFactory::CreateImageIO(const char * path=0x0139d870, itk::ImageIOFactory::FileModeType mode=ReadMode) Line75 + 0x57
<br>> if((*k)->CanReadFile(path))<br>> {<br>> return *k;<br>> }<br>><br>> itk::ImageFileReader<itk::Image<unsigned short,2>,itk::DefaultConvertPixelTraits<unsigned short> >::GenerateOutputInformation() Line109 + 0x27
<br>> ITKCommon.dll!itk::ProcessObject::UpdateOutputInformation() Line760<br>> itk::ImageBase<2>::UpdateOutputInformation() Line177 + 0x3e<br>> ITKCommon.dll!itk::DataObject::Update() Line343
<br>><br>><br>> Thanks in advance.<br>> ------------------<br>> jimmy<br>> 2007-07-23<br>><br>> -------------------------------------------------------------<br>> 发件人:Luis Ibanez<br>> 发送日期:2007-07-22 22:57:00
<br>> 收件人:jimmy<br>> 抄送:insight-users<br>> 主题:Re: [Insight-users] Cannot debug projects of ITKApplication.<br>><br>> Hi Jimmy,<br>><br>> Can you look at the call stack in the debugger ?<br>><br>> Could you trace what is the ITK file, and line
<br>> that is triggering the error ?<br>><br>> Please let us know,<br>><br>><br>> Thanks<br>><br>><br>> Luis<br>><br>><br>> ----------------<br>> jimmy wrote:<br>><br>>>Hi, everyone.
<br>>><br>>>I have met a very strange problem when using ITKApplication:<br>>>I cannot debug or run Applications (e.g. ImageRegistration2D ,IntensityBased2D3DRegistration ) under the DEBUG mode in VS 2003.
<br>>>Here is the Error message:<br>>>"<br>>>Debug Assertion Failed!<br>>>Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)<br>>>"<br>>>at [m_FixedImageReader or other object]->Update();
<br>>><br>>>On the contrary, the project can be run very smoothly under RELEASE mode.<br>>><br>>>Can anyone help me? Thanks in advance.<br>>><br>>>--------------<br>>>jimmy<br>>>2007-07-21
<br>>><br>>><br>>>_______________________________________________<br>>>Insight-users mailing list<br>>><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>>><a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>>><br>><br>><br></blockquote></div><br>