[MINC-development] MINC2 API error handling

Leila Baghdadi baghdadi at phenogenomics.ca
Tue Dec 11 16:49:14 EST 2012


Hello,

from what I have seen hdf5 returns meaningful errors including function and line number but I did not find it useful specially when I was trying to debug minc2 code!!
so I guess your method of reporting some info is more useful when it comes to debugging,

Leila

----- Original Message -----
From: Vladimir S. FONOV <vladimir.fonov at gmail.com>
Sent: Tue, 12/11/2012 4:32pm
To: "discussion & planning, MINC" <minc-development at bic.mni.mcgill.ca>
Subject: [MINC-development] MINC2 API error handling

Hello Everybody,

another issue in MINC2 API - is almost complete lack of error reporting 
and sometimes checking. I.e functions are sometimes quietly returning 
MI_ERROR , and sometimes there is no check for the error from underlying 
HDF5 call.
I've been recently inserting code pieces like: 
https://github.com/BIC-MNI/libminc/blob/minc_lite/libsrc2/hyper.c#L606

which is printing some info on stderr. Which is not the most elegant way 
for handling errors, especially for some GUI program.

Would anyone have some other suggestions?

-- 
Best regards,

  Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
_______________________________________________
MINC-development mailing list
MINC-development at bic.mni.mcgill.ca
http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development


More information about the MINC-development mailing list