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

Home » Public Forums » archive » Re: Pixel format error
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: Pixel format error [message #16589] Fri, 06 August 1999 00:00
gabriel rodriguez ibe is currently offline  gabriel rodriguez ibe
Messages: 10
Registered: July 1999
Junior Member
I have gotten a similar error with Windows NT ( % Internal error.
Unable to determine pixel format, % Expression must be a structure in
this context: <No name>.) if I changed the screen resolution WHILE
working with IDL. Restarting IDL would solve it.

Robert S. Mallozzi escribi�:

> Hi all,
>
> When testing a somewhat large program I wrote under
> Linux on Win98, IDL generated an error I've
> not seen before, and I was hoping someone might have
> come across it.
>
> The program contains many objects, pointers, and widgets.
> The main display widget is coded as an object, and one of the
> first things the code does is instantiate this object and
> create the widget. The first line in the PRO that
> builds the widget is this:
>
> screen = GET_SCREEN_SIZE()
>
> Under Win98, this crashes with the following error:
>
> % Internal error. Unable to determine pixel format.
> % Expression must be a structure in this context: <No name>.
> % Execution halted at: GET_SCREEN_SIZE 65
> C:\RSI\IDL52\lib\get_screen_size.pro
>
> This line (65) in the file is
>
> WIDGET_CONTROL, wBase, /REALIZE
>
> wBase is a valid widget ID at this point.
>
> I can't remember where I heard about GET_SCREEN_SIZE(), but
> I seem to remember that it was preferred over
> DEVICE, GET_SCREEN_SIZE = screen. However, now I see that
> GET_SCREEN_SIZE() does not appear in the IDL help. When
> I changed my code to use DEVICE, ... it works fine.
>
> By the way, if I start IDL fresh, and type
> "screen = GET_SCREEN_SIZE()", the function call succeeds. If
> I then run my program, it crashes. Apparently something I do
> before the call is invoking the error, but it is a large program
> and I can't spare the time to track the error right now.
>
> Has anyone ever seen this? Should we prefer DEVICE over the
> library function?
>
> Regards,
>
> -bob mallozzi
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
> Robert S. Mallozzi 256-544-0887
> Mail Code SD 50
> Work: http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center
> Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: tracking error while running as binaries
Next Topic: Easy way to make hard copies at full printer resolution

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

Current Time: Wed Oct 08 11:51:22 PDT 2025

Total time taken to generate the page: 0.00593 seconds