<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><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>&nbsp;</DIV>
<DIV>How can I catch this exception to&nbsp; avoid the crash of my program&nbsp;<SPAN style="COLOR: #000" title="" te="I tried to do this but I could not wrestle this exception" se="j'ai essayé de faire ceci mais j'ai pas pu catcher cette exception" closure_uid_r77gy5="96">&nbsp;</SPAN></DIV>
<DIV><SPAN style="COLOR: #000" title="" te="I tried to do this but I could not wrestle this exception" se="j'ai essayé de faire ceci mais j'ai pas pu catcher cette exception" closure_uid_r77gy5="96"></SPAN>&nbsp;</DIV>
<DIV><SPAN style="COLOR: #000" title="" te="I tried to do this but I could not wrestle this exception" se="j'ai essayé de faire ceci mais j'ai pas pu catcher cette exception" closure_uid_r77gy5="96">I tried to do this but I could not&nbsp;cath &nbsp;the exception :<BR><FONT size=2></FONT></SPAN></DIV>
<DIV><SPAN style="COLOR: #000" title="" te="I tried to do this but I could not wrestle this exception" se="j'ai essayé de faire ceci mais j'ai pas pu catcher cette exception" closure_uid_r77gy5="96"><FONT size=2>//-----------------------------------------------</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; try</DIV></FONT></FONT><FONT size=2>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dicomReader-&gt;Update();</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch</FONT></FONT><FONT size=2> (vtkstd::bad_alloc)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<SPAN style="COLOR: #000" title="" te="It does not pass through here" se="Il ne passe pas par ici" closure_uid_r77gy5="108">It doesn't pass through here</SPAN></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch</FONT></FONT><FONT size=2> (...)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<SPAN style="COLOR: #000" title="" te="It does not pass through here" se="Il ne passe pas par ici" closure_uid_r77gy5="108">It doesn't pass through here</SPAN></FONT><FONT size=2></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>//---------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you in davance </DIV></FONT></SPAN></td></tr></table><br>