Hi,<div><br></div><div>We currently use SetAbortGenerateData(true) for cancel computation.</div><div><br></div><div>But we have some crash with this.</div><div><br></div><div>If I use on MedianFilter (for example) and force SetNumberOfThreads(1) this will not crash, but if we dont use SetNumberOfThread before computation, my program crash.</div>
<div><br></div><div>Do you have any idea ? </div><div>Or perhaps it's a missuse of this functionality ?</div><div><br></div><div>Thanks</div><div><br><div name="sig_9048f51ef5" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0pt; ">
</div><div class="gmail_quote">On Mon, May 10, 2010 at 15:32, Vincent LEFORT <span dir="ltr"><<a href="mailto:vincent.lefort@gmail.com">vincent.lefort@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>It seems to be ok on my filter.</div><div><br></div><div>Thanks.</div><div><div></div><div class="h5"><div>
<br><div class="gmail_quote">On Fri, May 7, 2010 at 16:53, Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com" target="_blank">dan.muel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Vincent,<br>
<br>
Try the following:<br>
processObject->AbortGenerateDataOn();<br>
<br>
The documentation says:<br>
/** Set the AbortGenerateData flag for the process object. Process objects<br>
* may handle premature termination of execution in different ways. */<br>
<br>
Translation: this only works if the filter has internal support for<br>
early termination.<br>
<br>
Hope this helps.<br>
<br>
Cheers, Dan<br>
<div><div></div><div><br>
On 7 May 2010 16:40, Vincent LEFORT <<a href="mailto:vincent.lefort@gmail.com" target="_blank">vincent.lefort@gmail.com</a>> wrote:<br>
> Hello, i have some filters connected together.<br>
> I want to stop (i have a user interface) filters computation but a don't see<br>
> any function or any way to do.<br>
> Someone have an idea ?<br>
> Thanks a lot.<br>
> Vincent LEFORT<br>
</div></div><div><div></div><div>> _____________________________________<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>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>