EOS_SW_CREATE HDF function file path issue [message #80193] |
Thu, 10 May 2012 09:37 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
So, I think I got this working, but having found nothing on the Googs
about this problem, I am posting to the newsgroup so there will be a
reference, and maybe someone can shed some light on the root cause.
Symptom: Adding data to HDF-EOS file created with EOS_SW_OPEN() causes
a segfault-- IDL crashes. The specific circumstance of the crash seems
to be opening an existing HDF-EOS file using EOS_SW_OPEN().
Resolution: The crash occurs at:
HDFEOS_FID = EOS_SW_OPEN(FULL_PATH,/RDWR)
The crash does not occur if this is substituted with
CD,FILE_DIRNAME(FULL_PATH)
HDFEOS_FID = EOS_SW_OPEN(FILE_BASENAME(FULL_PATH),/RDWR)
Anyway, that's a weird one and took a while to debug, so I'm posting
it here if anyone in the future is foolish enough to try to use IDL
for this.
|
|
|