<font size="2"><font face="verdana,sans-serif"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">&quot;The signature of ThreadedGenerateData() has been changed in ITK v4 to use the new ThreadIdType.&quot; This says it all. Did you even read the error message?</span><br>

</font></font><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="font-size: 16px;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="font-size: 16px;">Anyway, threadId should be declared not as int but as ThreadIdType, like this:</span></font></div>

<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="font-size: 16px;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="font-size: 16px;"><div>

<div>/** Does the real work. */</div><div>virtual void ThreadedGenerateData(const typename Superclass::OutputImageRegionType&amp; outputRegionForThread,</div><div>  ThreadIdType threadId);</div></div><div><br></div></span></font></div>

<div><div class="gmail_quote">On Sun, Sep 11, 2011 at 09:26, iamrndm b <span dir="ltr">&lt;<a href="mailto:arindam.osu.cse@gmail.com">arindam.osu.cse@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hi all , <div>i am trying to develop a multithreaded filter and keep getting the following error</div><div><div>UpdateCTestConfiguration  from :/Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test/DartConfiguration.tcl</div>


<div>UpdateCTestConfiguration  from :/Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test/DartConfiguration.tcl</div><div>Test project /Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test</div>


<div>Constructing a list of tests</div><div>Done constructing a list of tests</div><div>Checking test dependency graph...</div><div>test 18</div><div>    Start 18: itkDiceImageFilterTest01</div><div><br></div><div>18: Test command: Research/code/git_itk/itk_bin/bin/ITKReviewTestDriver itkDiceImageFilterTest Research/code/git_itk/ITK/Testing/Data/Input/itkDiceImageFilterInputA.jpg Research/code/git_itk/ITK/Testing/Data/Input/itkDiceImageFilterInputB.jpg</div>


<div>18: Test timeout computed to be: 9.99988e+06</div><div>18: ITK test driver caught an ITK exception:</div><div>18: </div><div>18: itk::ExceptionObject (0x101ef4fd0)</div><div>18: Location: &quot;void itk::MultiThreader::SingleMethodExecute()&quot; </div>


<div>18: File: Research/code/git_itk/ITK/Modules/Core/Common/src/itkMultiThreader.cxx</div><div>18: Line: 319</div><div>18: Description: itk::ERROR: MultiThreader(0x102039000): Exception occurred during SingleMethodExecute</div>


<div>18: Research/code/git_itk/ITK/Modules/Core/Common/include/itkImageSource.hxx:294:</div><div>18: itk::ERROR: itkDiceImageFilter(0x101ef48a0): Subclass should override this method!!!</div><div>18: The signature of ThreadedGenerateData() has been changed in ITK v4 to use the new ThreadIdType.</div>


<div>18: itkDiceImageFilter::ThreadedGenerateData() might need to be updated to used it.</div><div>18: </div><div>1/1 Test #18: itkDiceImageFilterTest01 .........***Failed    0.08 sec</div><div><br></div><div>0% tests passed, 1 tests failed out of 1</div>


<div><br></div><div>Label Time Summary:</div><div>ITKReview    =   0.08 sec</div><div><br></div><div>Total Test time (real) =   0.16 sec</div><div><br></div><div>The following tests FAILED:</div><div><span style="white-space:pre-wrap">        </span> 18 - itkDiceImageFilterTest01 (Failed)</div>


<div>Errors while running CTest</div></div><div><br></div><div>I am not quite sure what i am doing wrong , i have added the .h and .hxx files .</div><div>any ideas/help will be appreciated </div><div><br></div><div><br></div>


<div>thanks</div><div>Andy</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>