<div dir="ltr">Could you post the entire function?<br><br>Jothy<br><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 12:19 PM, Fireman Fireman <span dir="ltr"><<a href="mailto:vtkusersneedhelp@yahoo.fr">vtkusersneedhelp@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
<div>Hi, <br><br>I'm using the last VTK 5.6.1. <br><br>I'm using a vtkDICOMImageReader to read DICOm images. I have got this error <br><br>\vtk\common\vtkDataArrayTemplate.txx, line 140 <br>vtkShortArray (0931BF08): Unable to allocate 129499136 elements of size 2 <br>
bytes. <br><br>What's the problem? </div>
<div> </div>
<div>How can I catch this exception to avoid the crash of my program <span style="color: rgb(0, 0, 0);" title=""> </span></div>
<div><span style="color: rgb(0, 0, 0);" title=""></span> </div>
<div><span style="color: rgb(0, 0, 0);" title="">I tried to do this but I could not cath the exception :<br><font size="2"></font></span></div>
<div><span style="color: rgb(0, 0, 0);" title=""><font size="2">//-----------------------------------------------</font></span></div>
<div><font color="#0000ff" size="2"><font color="#0000ff" size="2"> try</font></font></div><font size="2">
<div> {</div>
<div> dicomReader->Update();</div>
<div> }</div>
<div></div></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> catch</font></font><font size="2"> (vtkstd::bad_alloc)
<div> {</div>
<div> //<span style="color: rgb(0, 0, 0);" title="">It doesn't pass through here</span></div>
<div> }</div>
<div></div></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> catch</font></font><font size="2"> (...)
<div> {</div>
<div> //<span style="color: rgb(0, 0, 0);" title="">It doesn't pass through here</span></div></font><font size="2">
<div> }</div>
<div>//---------------------------------------------------------</div>
<div> </div>
<div>Thank you in davance </div></font></td></tr></tbody></table><br>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Research Scholar<br>Dept. of Medical Physics<br>Clatterbridge Centre for Oncology<br>UK<br></div><br>
</div>