Hi Jia Fucang,

 

thank you for the hint, I have added a try/catch block in revision
17041.

 

Regards,

Daniel

 

---

 

Dipl.-Inform. Med. Daniel Stein

German Cancer Research Center

Div. Medical and Biological Informatics

Im Neuenheimer Feld 280

D-69120 Heidelberg, Germany

Phone:  (+49) 6221/42-3547

Fax:    (+49) 6221/42-2345

http://www.dkfz-heidelberg.de/de/mbi/ 

Homepage: http://www.dkfz-heidelberg.de/de/mbi/people/Daniel_Stein.html 

 

Von: Jia Fucang [mailto:[email protected]] 
Gesendet: Donnerstag, 23. April 2009 14:27
An: [email protected]
Betreff: [mitk-users] memory allocation exception in deformable
registrationmodule

 

Hi, 

I am glad to find you guys release a deformable registration module,
thanks.
I tried it with two SPGR T1 images of two subjects, but the mainapp
crashed
when executing  registration->Update(); in
QmitkDemonsRegistrationControls
::CalculateTransformation() member function. which may need a try catch
block
to catch an exception and return.
try{
  registration->Update();
   }
catch(...)
{
  QMessageBox::information( NULL, "Registration exception", "may be
memory allocation exception",
              QMessageBox::Ok );
  return;
}

if without try/catch block, mainapp will print:
MITK MainApp caught an exception:
c:\toolkit\insight\code\common\itkImportImageContainer.txx:188:
Failed to allocate memory for image.

Fucang

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to