Re: IDL 7.1 dialog_pickfile segmentation fault [message #67188] |
Thu, 09 July 2009 10:25 |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
Hi Jonathan & Mike,
Thanks for reporting this bug. In IDL 7.1, we fixed DIALOG_PICKFILE on
Motif so that the DEFAULT_EXTENSION keyword would work the same as it
does on Windows - if you pick a filename that doesn't have an
extension, then DIALOG_PICKFILE will automatically add the provided
default extension. See the documentation for the WRITE keyword to
DIALOG_PICKFILE for details.
Unfortunately, we didn't test all combinations of DEFAULT_EXTENSION
and FILTER. It works fine if FILTER is an array, but not if it is a
scalar. A quick workaround is to just change the FILTER to a 1-element
array:
a = dialog_pickfile(default_extension='txt',filter=['*.txt'])
This bug will be fixed in the next IDL release.
Thanks!
-Chris
ITTVIS
|
|
|