Microsoft KB Archive/188253

= PRB: Calling _Htmltag Class Results in Memory Error =

Article ID: 188253

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q188253



SYMPTOMS
Repeatedly calling the _htmltag class located in the _html.vcx Class Library while running Visual FoxPro 6.0 under Window NT 4.0 causes the following error message to occur:

There is not enough memory to complete this operation.

If the operating system is Windows 95, Visual FoxPro hangs and no error message appears.



RESOLUTION
Release the object reference explicitly after you create the instance of the object. In the example below, replace the line:

o=''

with

o.Release



STATUS
This behavior is by design.



MORE INFORMATION
The Genhtml.prg program uses the _html.vcx Class Library. The _htmltag class is one of many classes available within this Class Library.

Steps to Reproduce Behavior
Create a program that contains the following code and run the program: FOR x = 1 TO 10000 o=newobject("_htmltag",home+"ffc\_html.vcx") o='' ENDFOR While the program is running, one of the behaviors listed in the SYMPTOMS section occurs.

Additional query words: kbVFp600bug kbvfp600

Keywords: kbprb KB188253

-

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

© Microsoft Corporation. All rights reserved.