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

Home » Public Forums » archive » Re: Minor bug in 4.0.1 for Win95
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: Minor bug in 4.0.1 for Win95 [message #6904] Wed, 04 September 1996 00:00
M.Reuss is currently offline  M.Reuss
Messages: 4
Registered: January 1996
Junior Member
The Users'Guide for IDL 3.0 says that under Unix,
file units 0,-1, and -2 are tied to stdin, stdout, and stderr,
respectively.
Under VMS, these units are tied to the equivalents
SYS$INPUT,SYS$OUTPUT, and SYS$ERROR.

The Release Notes for IDL (version 3.*) for Windows say that these
three numbers are tied to stdin, stdout, and stderr, too.

I don't know whether there have been major changes to this in IDL 4.*.

Isn't there a good documentation any more?

Matthias Reuss
Re: Minor bug in 4.0.1 for Win95 [message #6915 is a reply to message #6904] Tue, 03 September 1996 00:00 Go to previous message
robert is currently offline  robert
Messages: 3
Registered: February 1996
Junior Member
Brian C. Ballard (bballard@orionint.com) wrote:
: Tim Patterson wrote:
: > Eric J. Korpela wrote:
: > > Anyone know what happens on VMS?
: > OPEN VMS:
: > IDL> printf,0
: > IDL> printf,1
: > % PRINTF: File unit is not open: 1.
: > % Execution halted at: $MAIN$
: > IDL> printf,-1
: > IDL> printf,-2
: > IDL> printf,-3
: > % PRINTF: File unit is not within allowed range: -3.
: > % Execution halted at: $MAIN$
: > IDL>
: > Seems to be the same as the Unix side. No crashes anyway.
: > Looks like that's just a MS Windows/IDL problem so far.
: > Tim
: Yep, same thing on Sun Solaris 2.5:
: IDL> printf,0
: IDL> printf,1
: % PRINTF: File unit is not open: 1.
: % Execution halted at: $MAIN$
: IDL> printf,-1
: IDL> printf,-2
: IDL> printf,-3
: % PRINTF: File unit is not within allowed range: -3.
: % Execution halted at: $MAIN$

Same on IRIX5.3. As a point of note, we have -2 for stderr, -1 for stdout,
and finally, just for information,
IDL> print,!journal
0
(system variable !journal: "A read-only long-integer variable containing
the logical unit number of the file used for journal output" Online help)
So what is !journal set to undef W95?

--
Robert Bunting E-mail: robert@aurora.york.ac.uk
Space Geophysics Group Tel:(+44)1904-432277
Dept of Physics, University of York, Fax:(+44)1904-432214
York YO1 5DD U.K. WWW: http://aurora.york.ac.uk/
Re: Minor bug in 4.0.1 for Win95 [message #6920 is a reply to message #6915] Mon, 02 September 1996 00:00 Go to previous message
Brian C. Ballard is currently offline  Brian C. Ballard
Messages: 3
Registered: August 1996
Junior Member
Tim Patterson wrote:
>
> Eric J. Korpela wrote:
>
>>
>> Anyone know what happens on VMS?
>>
>
> OPEN VMS:
>
> IDL> printf,0
> IDL> printf,1
> % PRINTF: File unit is not open: 1.
> % Execution halted at: $MAIN$
> IDL> printf,-1
>
> IDL> printf,-2
>
> IDL> printf,-3
> % PRINTF: File unit is not within allowed range: -3.
> % Execution halted at: $MAIN$
> IDL>
>
> Seems to be the same as the Unix side. No crashes anyway.
> Looks like that's just a MS Windows/IDL problem so far.
>
> Tim

Yep, same thing on Sun Solaris 2.5:

IDL> printf,0
IDL> printf,1
% PRINTF: File unit is not open: 1.
% Execution halted at: $MAIN$
IDL> printf,-1

IDL> printf,-2

IDL> printf,-3
% PRINTF: File unit is not within allowed range: -3.
% Execution halted at: $MAIN$

--
Brian C. Ballard
Electrical Engineer

E-mail: bballard@orionint.com
WWW : http://www.orionint.com/~bballard/
Re: Minor bug in 4.0.1 for Win95 [message #6923 is a reply to message #6920] Fri, 30 August 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Eric J. Korpela wrote:

>
> Anyone know what happens on VMS?
>


OPEN VMS:


IDL> printf,0
IDL> printf,1
% PRINTF: File unit is not open: 1.
% Execution halted at: $MAIN$
IDL> printf,-1

IDL> printf,-2

IDL> printf,-3
% PRINTF: File unit is not within allowed range: -3.
% Execution halted at: $MAIN$
IDL>

Seems to be the same as the Unix side. No crashes anyway.
Looks like that's just a MS Windows/IDL problem so far.

Tim
Re: Minor bug in 4.0.1 for Win95 [message #6925 is a reply to message #6923] Fri, 30 August 1996 00:00 Go to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <32272F74.6EEA@raptor.lpl.arizona.edu>,
Tim Patterson <tim@raptor.lpl.arizona.edu> wrote:
>
> IDL> printf,-1
>
> IDL> printf,-2
>
> IDL> printf,-3
> % PRINTF: File unit is not within allowed range: -3.
> % Execution halted at: $MAIN$
>
> Wonder what file units -1 and -2 are?
>

On IDL 4.0.1 on SunOS 4.1.4:

Units -1 and -2 appear to be stdout and stderr. Output of print goes to -1
while the IDL prompt, command line, and system messages go to -2.

Unit 0 I'm not sure of. Could be /dev/null.

Tis a shame it's not consistant among architectures.

Anyone know what happens on VMS?

Eric
--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href=" http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpe la/w">
Click here for more info.</a>
Re: Minor bug in 4.0.1 for Win95 [message #6929 is a reply to message #6923] Fri, 30 August 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
David P. Steele wrote:
>
> In article <brian.jackel.77.001B3BC3@uwo.ca>, brian.jackel@uwo.caJ says...
>>
>> Purely by accident, I found out a one line way to
>> crash IDL Version 4.0.1 (Win32 x86) running under
>> Windows 95. Just type
>>
>> PRINTF,0
>>
>> and it goes boom. Yes, I know it's not a valid use
>> of PRINTF, but the equally stupid PRINTF,1
>> just returns a nice error message.
>>
>> Can anyone reproduce this on other platforms?
>>
>> Brian Jackel
>
> Sure enough, it gives an "Unhandled Exception" error message under Windows for
> Workgroups 3.11.
>

On a digital unix alpha with idl 4.0.1b:

IDL> printf,1
% PRINTF: File unit is not open: 1.
% Execution halted at: $MAIN$
IDL> printf,0
IDL>

So no crash, but no error message either.

Also,

IDL> printf,-1

IDL> printf,-2

IDL> printf,-3
% PRINTF: File unit is not within allowed range: -3.
% Execution halted at: $MAIN$
IDL>

Wonder what file units -1 and -2 are?

Tim
Re: Minor bug in 4.0.1 for Win95 [message #6931 is a reply to message #6923] Fri, 30 August 1996 00:00 Go to previous message
David.Steele is currently offline  David.Steele
Messages: 8
Registered: April 1996
Junior Member
In article <brian.jackel.77.001B3BC3@uwo.ca>, brian.jackel@uwo.caJ says...
>
> Purely by accident, I found out a one line way to
> crash IDL Version 4.0.1 (Win32 x86) running under
> Windows 95. Just type
>
> PRINTF,0
>
> and it goes boom. Yes, I know it's not a valid use
> of PRINTF, but the equally stupid PRINTF,1
> just returns a nice error message.
>
> Can anyone reproduce this on other platforms?
>
> Brian Jackel

Sure enough, it gives an "Unhandled Exception" error message under Windows for
Workgroups 3.11.

Dave
--
------------------------------------------------------------ ------------
David P. Steele Ph: (306) 966-6447
ISAS, University of Saskatchewan Fax: (306) 966-6400
116 Science Place David.Steele@usask.ca
Saskatoon SK S7N 5E2 CANSAS::STEELE
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Looking for IDL Code
Next Topic: map_continent

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

Current Time: Wed Oct 08 15:33:13 PDT 2025

Total time taken to generate the page: 0.00583 seconds