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

Home » Public Forums » archive » Network file problem with FSTAT() in IDL 5 under 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
Network file problem with FSTAT() in IDL 5 under Win95 [message #9460] Thu, 03 July 1997 00:00
David P. Steele is currently offline  David P. Steele
Messages: 3
Registered: July 1997
Junior Member
Name: David Steele
E-Mail Address: David.Steele@usask.ca
IDL Version: { x86 Win32 Windows 5.0 Apr 28 1997}
Platform and OS: Intel; Windows 95

Description of Problem: ------------------------------------------------

Using IDL 5.0 FSTAT() under Win95 to examine network files, i.e., those
on drives accessed via Windows 95 peer-to-peer networking, the file size
returned is always large and negative. I have seen values of
-1,058,128,016 bytes, -1,057,927,312 bytes, and -1,058,119,824 bytes.
The file size returned is consistent for files ranging in size from < 1
KB to > 40 MB. Rebooting the PC hosting the network drive changes the
returned size, which then remains consistent until the next network host
reboot. Windows Explorer returns the correct file size.

FSTAT has no problem with files on local drives. IDL 4.01b STAT()
(running under Win95 on the host of the network drive) correctly
returned the file size for a file on another network drive.

Example Code: ----------------------------------------------------------

OpenR,lun,'d:\w95undo.dat',/Get_LUN
Help,/St,FSTAT(lun)
** Structure FSTAT, 12 tags, length=36:
UNIT LONG 100
NAME STRING 'd:\w95undo.dat'
OPEN BYTE 1
ISATTY BYTE 0
ISAGUI BYTE 0
INTERACTIVE BYTE 0
READ BYTE 1
WRITE BYTE 0
TRANSFER_COUNT LONG 0
CUR_PTR LONG 0
SIZE LONG -1058128016
REC_LEN LONG 0

Known Workarounds or Fixes: --------------------------------------------

None known.

RSI Tech Support Response: ---------------------------------------------

Not yet submitted; I'm not on Tech Support.

------------------------------------------------------------ ------------
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 DANSAS::STEELE
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: All===Writers!!!!....
Next Topic: SVDC routine. Is it o.k.?

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

Current Time: Sat Oct 11 14:59:57 PDT 2025

Total time taken to generate the page: 0.56097 seconds