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

Home » Public Forums » archive » OPENW using /XDR (IDL 5.1/linux) WARNING!
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
OPENW using /XDR (IDL 5.1/linux) WARNING! [message #12191] Fri, 10 July 1998 00:00
Russ Welti (on mapper is currently offline  Russ Welti (on mapper
Messages: 9
Registered: January 1998
Junior Member
The 5.1 online help for OPENW states that /XDR option is
basically obsolete but does NO harm to be present
(for backward compatibility).

But I finally found my problem in porting a huge IDL
application from my Solaris 5.0 IDL workstation
to my test linux box, and it was definitely due to
the presence of the /XDR on an OPENW statement.

I presume this is a bug, if it is not, i would very much
appreciate being contacted to tell me otherwise, so i
can maintain my IDL source code properly (i.e. single
copy of the source code, not both a 5.0 and a 5.1+ version)

Below, i have included a tiny example session where
the error is displayed.

IDL> print,path
/home/saga/geno/rwelti/ceph/C30-3AH/
IDL> openw,unit,path+"/tst.bin",/get_lun,/XDR
IDL> writeu,unit,float(1.0)
IDL> free_lun,unit
IDL> r=float(0.0)
IDL> openr,unit,path+"/tst.bin",/get_lun
IDL> readu,unit,a
IDL> help,a
A FLOAT = 4.60060e-41
% Program caused arithmetic error: Floating underflow

IDL> free_lun,unit
IDL> openw,unit,path+"/tst.bin",/get_lun <== NO /XDR here
IDL> writeu,unit,float(1.0)
IDL> free_lun,unit
IDL> r=float(0.0)
IDL> openr,unit,path+"/tst.bin",/get_lun
IDL> readu,unit,a
IDL> help,a
A FLOAT = 1.00000


Sincerely,
/
Russ Welti /-\
(c-g)
University of Washington \-/
Molecular Biotechnology /
PO Box 357730 /-\
Seattle, WA 98195 (a-t)
rwelti@u.washington.edu \-/
(206) 616 5116 voice (206) 685 7301 FAX /
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Ineractively building GUIs in IDL 5.1?
Next Topic: Ineractively building GUIs in IDL 5.1?

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

Current Time: Sun Oct 12 04:28:00 PDT 2025

Total time taken to generate the page: 1.04097 seconds