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

Home » Public Forums » archive » Re: Virtual Machine Crashes :-(
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Virtual Machine Crashes :-( [message #37871] Wed, 04 February 2004 01:34
Ingo Salzmann is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
Ingo Salzmann is currently offline  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 Go to previous message
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Incremental variable names?
Next Topic: IDL Test case

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

Current Time: Fri Oct 10 13:39:15 PDT 2025

Total time taken to generate the page: 0.64066 seconds