Microsoft KB Archive/75457

= APPNOTE: QuickWin Unformatted File/Huge Data Items Patch =

Article ID: 75457

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 5.1

-



This article was previously published under Q75457



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.

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.
 * INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY   |
 * ACCOMPANY THIS DOCUMENT (collectively referred to as an           |
 * Application Note) IS PROVIDED &quot;AS IS&quot; 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.   |
 * trademarks and Windows is a trademark of Microsoft Corporation.   |

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 &quot;Patch for QuickWin Unformatted File and HUGE Data Problem&quot; 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 query words: appnote nofps HF0454

Keywords: kblangfortran KB75457

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.