Re: Virtual Machine Crashes :-( [message #37871] |
Wed, 04 February 2004 01:34 |
Ingo Salzmann
Messages: 10 Registered: December 2002
|
Junior Member |
|
|
Now I'm completely confused ... I tried to compile it on another machine
at the institute and it works fine. That is a bit surprising to me
... Maybe it was not installed properly on the other PC? Nevertheless
DIALOG_PICKFILE() lets us pick files again, everybody is happy and IDL
is reinstalled ;-)
Thanks & Regards,
Ingo
David Fanning schrieb:
> Ingo Salzmann writes:
>
>
>> If I start the .sav file by double-clicking on it, there doesn't appear any
>> dialog window, even if I reduce the statement to:
>> file = Dialog_Pickfile()
>> ... I find that strange because it worked well with IDL 5.5 ...
>
>
> I wouldn't think DIALOG_PICKFILE would cause you
> problems, but I'd try removing the DIALOG_PARENT
> keyword and see what happens. Let me know. If it
> helps, I have an explanation that I am too embarrassed
> to give without more data. :-)
>
> Cheers,
>
> David
|
|
|
Re: Virtual Machine Crashes :-( [message #37876 is a reply to message #37871] |
Tue, 03 February 2004 09:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ingo Salzmann writes:
> If I start the .sav file by double-clicking on it, there doesn't appear any
> dialog window, even if I reduce the statement to:
> file = Dialog_Pickfile()
> ... I find that strange because it worked well with IDL 5.5 ...
I wouldn't think DIALOG_PICKFILE would cause you
problems, but I'd try removing the DIALOG_PARENT
keyword and see what happens. Let me know. If it
helps, I have an explanation that I am too embarrassed
to give without more data. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Virtual Machine Crashes :-( [message #37877 is a reply to message #37876] |
Tue, 03 February 2004 08:24  |
Ingo Salzmann
Messages: 10 Registered: December 2002
|
Junior Member |
|
|
> Does your program check for a null filename coming
> back from DIALOG_PICKFILE?
I hope to be able to catch errors with the CATCH statement ...
; ############################################################ ####
Catch, theError
IF theError NE 0 THEN BEGIN
Catch, /Cancel
errormsg = dialog_message('No Pole Figure loaded.', /ERROR)
info.path=thisPath
Widget_Control, event.top, Set_UValue=info, /No_Copy
RETURN
ENDIF
file = Dialog_Pickfile(/Read, Filter="*.rwa", DIALOG_PARENT=event.top,
PATH=info.path, GET_PATH=thePath)
; ############################################################ ####
If I start the .sav file by double-clicking on it, there doesn't appear any
dialog window, even if I reduce the statement to:
file = Dialog_Pickfile()
... I find that strange because it worked well with IDL 5.5 ...
Regards,
Ingo
|
|
|
Re: Virtual Machine Crashes :-( [message #37879 is a reply to message #37877] |
Tue, 03 February 2004 06:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ingo Salzmann writes:
> I have a rather large widget program working perfectly with IDL6.0, it also
> works fine if I (1) start IDL VM and (2) select my proper .sav file from
> within ... but if I run this file by double-clicking it from the windows
> explorer interface it works fine until it crashes in the moment when it
> executes DIALOG_PICKFILE() ...
>
> Has anybody any idea what there could be wrong?
Does your program check for a null filename coming
back from DIALOG_PICKFILE?
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|