APPNOTE: QuickWin Unformatted File/Huge Data Items Patch

Last reviewed: January 9, 1996
Article ID: Q75457
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1

SUMMARY

An application note is available that explains how to correct a problem with writing huge data items to unformatted binary files within FORTRAN version 5.1 QuickWin. When writing a data item greater than 64K to an unformatted or binary data file from within QuickWin, an Unrecoverable Application Error (UAE) may result.

Application notes can be obtained by calling Microsoft Product Support Services.

This file has been removed from the Microsoft Software Library but can be requested by calling Microsoft Product Support Services.

MORE INFORMATION

The following is the full text of the application note:

   Microsoft Product Support Services Application Note (Text File)
                HF0454: PATCH FOR QUICKWIN UNFORMATTED
                      FILE AND HUGE DATA PROBLEM
                                                   Revision Date: 8/91
                                                         Disk Included

The following information applies to Microsoft FORTRAN version 5.1.

 --------------------------------------------------------------------
| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
| ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
| Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
| KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
| THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
| PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
| accuracy and the use of this Application Note. This Application    |
| Note may be copied and distributed subject to the following        |
| conditions: 1) All text must be copied without modification and    |
| all pages must be included; 2) If software is included, all files  |
| on the disk(s) must be copied without modification [the MS-DOS(R)  |
| utility DISKCOPY is appropriate for this purpose]; 3) All          |
| components of this Application Note must be distributed together;  |
| and 4) This Application Note may not be distributed for profit.    |
|                                                                    |
| Copyright 1991 Microsoft Corporation. All Rights Reserved.         |
| Microsoft, MS-DOS, and the Microsoft logo are registered           |
| trademarks and Windows is a trademark of Microsoft Corporation.    |
 --------------------------------------------------------------------

This application note illustrates how to modify the FORTRAN version 5.1 Windows run-time library LLIBFEW.LIB to correct a problem with HUGE data items and unformatted or binary files.

A program compiled with FORTRAN 5.1 for use with Windows can cause an unrecoverable application error (UAE) in Windows. A UAE may occur if the program opens a file whose form is either binary or unformatted and then READs or WRITEs to that file using elements of HUGE arrays that are beyond the first 64K of the array.

Included on the enclosed "Patch for QuickWin Unformatted File and HUGE Data Problem" disk are two replacement object modules for two object modules in the Windows library LLIBFEW.LIB. These replacement modules correct the above problem.

The files on the enclosed disk are:

     APPLOAD.OBJ
     RELOC.OBJ

To make a patched version of the Windows library LLIBFEW.LIB, copy APPLOAD.OBJ and RELOC.OBJ from the enclosed disk to the directory where LLIBFEW.LIB is located. Then, execute the following command:

    lib llibfew.lib -+appload.obj -+reloc.obj;

This command will use the Microsoft Library Manager to replace the existing object modules in the library with the new patched versions of the object modules. You can then delete APPLOAD.OBJ and RELOC.OBJ from your hard disk.


Additional reference words: appnote HF0454
KBCategory: kbtool kbfile kbappnote
KBSubcategory: FLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.