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

Home » Public Forums » archive » Re: IDL 7.1 dialog_pickfile segmentation fault
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: IDL 7.1 dialog_pickfile segmentation fault [message #67188] Thu, 09 July 2009 10:25
chris_torrence@NOSPAM is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Path to pro files
Next Topic: "Program code area full", even when trying to exit!

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

Current Time: Sat Oct 11 12:59:44 PDT 2025

Total time taken to generate the page: 1.44436 seconds