Consultor Eletrônico



Kbase 12964: Attempt to read from closed stream ( Error 1386 )
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Attempt to read from closed stream ( Error 1386 )

PROGRESS Version 7 might generate the following error message if
your code accesses files and/or data stored in both the UNIX and
MS-Windows formats.

Attempt to read from closed stream. (1386)

Data is formatted differently in MS-Windows and UNIX. If you work with
files between these two environments, make sure the utility you
use to transfer the files back and forth converts the data properly.

PROGRESS Version 7 widgets are `native' to the environment on which
PROGRESS was installed. Therefore, PROGRESS expects the data to be
in the format appropriate to the native environment. PROGRESS
generates error message 1386 when it encounters an unexpected format.

A future release of PROGRESS Version 7 will include some features
which will allow widgets to work with files from more than one
environment. Until this feature is in place, however, it is up to
the programmer to make sure that the proper conversion takes place.

This error can also happen if you have a calculated field in a browse
and one of the possible results of the calculated field is a space
within double quotes.

If you replace the double-quote+space+double-quote with a null string
(i.e. double-quote+double-quote --> "") the problem should go away.

Progress Software Technical Support Note # 12964