Microsoft KB Archive/186088

= BUG: A variable that is defined in a report may not be released after closing, after previewing, or after printing the report in Visual FoxPro =

Article ID: 186088

Article Last Modified on 2/7/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 3.0b for Macintosh
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q186088



SYMPTOMS
Under certain circumstances, a variable defined within a report is not released after closing the report or after printing.



RESOLUTION
Here are two resolutions:
 * Issue a RELEASE ALL LIKE command after the report completes printing or after previewing the report. -or-


 * Place the code to modify, to print, or to preview the report in a program or procedure. Because the scope of variable is private, the variable disappears when the procedure or program finishes running.



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



MORE INFORMATION
In the example below, a report variable remains in memory after closing or printing the report.

Steps to Reproduce Behavior
 Open the Employee.dbf table. Create a Quick Report based on the Employee table. Add a memory variable named Leftover to the report. Save the report with the name Ztest.frx and close the report.  A reference to the variable appears on the desktop after you type the following code in the Command window and press ENTER: DISPLAY MEMORY LIKE Leftover  Next, type the following in the Command window:

CLEAR ALL

REPORT FORM Ztest PREVIEW

</li> Close the Preview window without printing the report and repeat step 5.

A reference to the Leftover memory variable appears on the desktop but the variable does not remain in memory.</li></ol>

Additional query words: kbDSupport KBDSE kbVFp500bug kbVFp500 kbVFp300bug kbVFp300b kbvfp600

Keywords: kbbug kbnofix KB186088

-

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

© Microsoft Corporation. All rights reserved.