Re: X-windows locking up [message #32553 is a reply to message #32546] |
Tue, 15 October 2002 10:50   |
Dave Greenwood
Messages: 33 Registered: October 2000
|
Member |
|
|
In a previous article, "Ian Dean" <Ian.d.dean@baesystems.com> wrote:
> Hi all,
> Sorry if this has already been posted - the original seems to have
> disappeared.
>
> This request is really for the VMS users out there.!!!!!
>
> Is there a known bug using the sensitive flag on a widget base under
> OpenVMS?
>
> What I want is a widget structure that has greyed out areas until some later
> stage when I need them to be made available. It is at this point the failure
> occurs.
>
> For instance, the following code:
>
> Pro my_test
> tlb = widget_base(column=1)
> message=widget_label(tlb,value='A header')
> my_base = widget_base(tlb, column=1)
> widget_control,my_base,sensitive=0 ; Don't allow the user access yet
> base2 = widget_base(my_base, row=1)
> pulld2 = widget_droplist(base2, value=['aaa','bbb'])
> base3 = widget_base(my_base, row=1)
> pulld3 = widget_droplist(base2, value=['ccc','ddd'])
> ; ... more such bases and widgets
> widget_control, tlb,/realize
> wait,5.0 ; Do some processing
> widget_control,my_base,/sensitive ; Now make structure available
> ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the point when the system hangs
> end
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and the drop-down
> list is originally unavailable as expected. However, when my_base is made
> sensitive
> the droplist widget is enabled, but all the selections available
> ('aaa','bbb'...) are greyed out. Furthermore, at this point the X-system
> locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.
I see the same problem with VMS 7.3 and IDL 5.3. However, if you can
telnet or set host to your VMS box all you need to do is to stop the process
running IDL - no need to reboot. I *also* see this problem using an AIX
system running IDL 5.3 so it may be a problem with IDL and *Xwindows* rather
than a problem with IDL and VMS. However, in my test the X server was still
my VMS system so I can't say whether it's X or VMS for sure. Perhaps some
unix user will be willing to test this and verify where the problem is.
> Note: this only happens if the droplist is in a base below the insensitive
> base.
I have an IDL utility that maps and unmaps bases with various options
depending on what's needed when. The contents of those bases are mutually
exclusive so I just map one base at a time, all in the same screen real
estate. At least one of my mapped bases includes a droplist, although I
don't recall offhand if there are intermediate bases between the mapped base
and the droplist. The same code works on VMS, Windows and Linux.
Dave
--------------
Dave Greenwood Email: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
|
|
|