In message <e6179e13392ec14aabcd5272c3aedd61124ec...@exchangesvr.momtex.com>, John Hester <jhes...@momtex.com> writes
I think it's something along those lines, but I don't think it's trying
to stick the entire contents of the file into a variable.  What I think
OPENSEQ is doing is keeping track of the position where the EOF mark is
so it will know when the end of the file is reached.  For a file greater
than 2GB in size, this position is an integer that takes more than 32
bits to store.  UV, being a 32-bit application, is not going to be able
to handle it.  The maximum positive integer value a 32-bit application
can reference is 2147483647.

The problem is, FV.FILE and FILEVARS(1) are *allegedly* *functionally* *identical*. An element of a dimensioned array, is supposed to be a normal variable in every way shape or form.

The problem is that, in this instance, it clearly isn't because the variable works while the element (allegedly identical) causes a crash.

I'd agree with Perry. It's a bug.

Oh - that reminds me of something else I'd call a bug. It might well have been fixed by now (I met it in 9.6) but you couldn't safely use a file variable in an IF statement. Can't remember the details, but it was something like

FVAR = ""
some conditional code
OPEN FILE TO FVAR
more code
IF FVAR EQ "" THEN
oh the file isn't open, so do whatever

That worked fine on PI, but crashed UV. Perfectly reasonable thing to do, but UV Basic wouldn't have it. Oh yes - I think it was file variables declared in common. Common forces all variables to default to the empty string so all my PI code tested for the empty string. Only to blow up when we compiled it on UV.

Cheers,
Wol
--
Anthony W. Youngman <pi...@thewolery.demon.co.uk>
'Yings, yow graley yin! Suz ae rikt dheu,' said the blue man, taking the
thimble. 'What *is* he?' said Magrat. 'They're gnomes,' said Nanny. The man
lowered the thimble. 'Pictsies!' Carpe Jugulum, Terry Pratchett 1998
Visit the MaVerick web-site - <http://www.maverick-dbms.org> Open Source Pick
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to