Article ID: 113031 - Last Review: October 29, 2003 - Revision: 2.0 FIX: ActiveControl Property of Screen Object Loses MemoryThis article was previously published under Q113031 On This PageSYMPTOMS
It is possible to receive an "Out of Memory" error when using the
ActiveControl property of the Visual Basic Screen object.
CAUSE
The ActiveControl property of the screen object can leak memory when used
with the Is operator.
RESOLUTION
Use a temporary variable to work around the problem. For example, change
the command click event in the code listed in the More Information section
below to this code:
STATUS
Microsoft has confirmed this to be a bug in Visual Basic version 3.0
for Windows. This problem has been corrected in Visual Basic version 4.0.
MORE INFORMATIONSteps to Reproduce Problem
| Article Translations
|

Back to the top
