Article ID: 102069 - Last Review: October 28, 2003 - Revision: 2.0

FIX: Out of Memory w/ Var Named ClientLeft/Top/Width/Height

This article was previously published under Q102069

On This Page

Expand all | Collapse all

SYMPTOMS

When you use a variable named ClientLeft, ClientTop, ClientWidth, or ClientHeight without explicitly defining the variable with Dim or Global, Visual Basic incorrectly generates the error "Out of memory - insufficient variable space," error code 3761.

WORKAROUND

Define the variable using Dim or Global. For example:
Dim ClientLeft As Single

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual Basic version 4.0.

MORE INFORMATION

Steps to Reproduce Problem

Sub Form_Click ()
    ' any of the following statements cause the error
    Print ClientLeft
    Print ClientTop
    Print ClientWidth
    Print ClientHeight
End Sub
				

APPLIES TO
  • Microsoft Visual Basic 3.0 Professional Edition
Keywords: 
kbbug kbfix KB102069
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations