BUG: SavePicture Function Hangs VFP When Zero Disk Space (195263)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q195263

SYMPTOMS

Using the SavePicture function to create a bitmap from a picture object reference and saving it to a storage media that has zero disk space hangs Visual FoxPro 5.x or 6.0.

RESOLUTION

Free up some disk space before using the SavePicture function to create a bitmap.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Copy some files onto a floppy disk until it reports 0 free space.
  2. In the Visual FoxPro Command window, type the following command:
          oPicture = LOADPICTURE(HOME()+"fox.bmp")
          ?
          SAVEPICTURE(oPicture,"a:\foxtest.bmp")
    							
RESULT: Visual FoxPro hangs and you have to press Ctrl+Alt+Del to terminate Visual FoxPro.

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbXBase KB195263