BUG: SAVEIMAGE May Cause Error DX1020 in SVGA Display Modes

Last reviewed: July 13, 1995
Article ID: Q110087
The information in this article applies to:
  • Microsoft FORTRAN PowerStation 32 for MS-DOS, versions 1.0 and 1.0a

SYMPTOMS

Using the SAVEIMAGE function in a high resolution Super VGA mode may produce the following error during program execution:

   DOSXMSF : fatal error DX1020: unhandled exception: General
             protection fault;

CAUSE

The error occurs when attempting to save regions close to the entire size of the display. The exact region that causes the GP fault varies according to the display adapter used.

RESOLUTION

Select smaller regions of the display to save as Windows .BMP files. For example, an entire screen could be stored in two .BMP files.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN PowerStation for MS- DOS.

This problem does not occur on FORTRAN PowerStation 32.

MORE INFORMATION

Compile and run the sample code on a PC with an ATI Graphics Ultra to generate the following error on the second call to SAVEIMAGE:

Sample Code

Compile options needed: none

      include 'fgraph.fi'
      include 'fgraph.fd'

      i= setvideomode($XRES16COLOR)
      i= saveimage('savimag1.bmp',0,0,1023,510)
      i= saveimage('savimag2.bmp',0,0,1023,511)
      end


Additional reference words: 1.00 gpf gp-fault
KBCategory: kbtool kbbuglist
KBSubcategory: FORTLngIss


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: July 13, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.