comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » QUERY_DICOM crashes on DICOMDIR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: QUERY_DICOM crashes on DICOMDIR [message #92545 is a reply to message #92537] Sun, 10 January 2016 11:12 Go to previous messageGo to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
пятница, 8 января 2016 г., 9:56:18 UTC+3 пользователь LNpellen написал:
> I have a code searching for DICOM files in a folder. If this folder contains the DICOMDIR IDL reports a fatal error and crashes on QUERY_DICOM. For now I exclued files named 'DICOMDIR', but I'm not sure that will always be the full name of these files. Any idea why QUERY_DICOM crashes on DICOMDIR or how I can avoid it in a more robust way than filename-match?
>
> Best regards
> Ellen

Hi. I looked at help of Query_dicom. So Query_dicom is wrote IDL and placed in IDL LIB folder. There are some comments in IDL code. I put here the fragment

;; verify that the file exists
IF ~file_test(file) THEN return, 0l

;; DICOM has a fatal error in accessing zero-length files
;; Avoid the problem by checking in advance
OPENR, unit, file, /get_lun
stat = FSTAT(unit)
FREE_LUN, unit
IF (stat.size EQ 0) THEN RETURN, 0L

So DICOM has a fatal error in accessing zero-length files, may be it's your case ?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Plotsym + CGplot, symbols not overlapped correctly
Next Topic: MODIS Conversion ToolKit is not working? Can anyone help me?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:24:55 PDT 2025

Total time taken to generate the page: 1.71056 seconds