<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> </DIV>
<DIV>How can I catch this exception to avoid the crash of my program <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></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> </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 cath 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> try</DIV></FONT></FONT><FONT size=2>
<DIV> {</DIV>
<DIV> dicomReader->Update();</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>
<DIV> //<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> }</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2> catch</FONT></FONT><FONT size=2> (...)</DIV>
<DIV> {</DIV>
<DIV> //<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> }</DIV>
<DIV>//---------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Thank you in davance </DIV></FONT></SPAN></td></tr></table><br>