PRB: Loops of @..SAY <General field> Causes GPF

Last reviewed: December 22, 1997
Article ID: Q157050
3.00 3.00b 5.00 WINDOWS kbprg kberrmsg kbprb

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0

SYMPTOMS

WARNING: The information in this article has not been confirmed or tested by Microsoft. Some or all of the information in this article has been taken from unconfirmed customer reports. ANY USE BY YOU OF THE INFORMATION PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this information "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.

Looping @...SAY <general field contain embedded pictures> might cause a General Protection Fault (GPF) in Windows 3.1 and Windows for Workgroups, and it might trigger one of the following error messages:

   VFP caused an invalid page fault in module kernal32.dll at <address>"
   under Windows 95

   -or-

   Application Error : Access violation : <address> under Winnt3.51

WORKAROUND

Instead of displaying a Picture from the general field, issue the following command:

   @...SAY <Picture File name> Bitmap

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a Table (name it Test) with a general field (name it Pic).

  2. Embed a .bmp file into the general field Pic.

  3. Execute the program as follows:

          CLOSE data
          SELECT 0
          USE Test
          DO while .t.
          @ 1,1 SAY Pic
          ENDDO
    

The amount of time the loop runs varies depending on your processor, memory, and operating system.


KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxinteropOle
Additional reference words: 3.00 3.00b 5.00 kbdse vFoxWin
Keywords : FxinteropOle kberrmsg kbprb kbprg
Version : 3.00 3.00b 5.00
Platform : WINDOWS


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: December 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.