FIX: Memory Leak with Command Button on Japanese Windows 95C (OSR 2.5)ID: Q223103
|
A memory leak might occur on Japanese Windows 95C (OSR 2.5) when unloading a Form that contains a CommandButton.
This problem occurs when the CommandButton's TabIndex property = "0" and its TabStop property = "TRUE."
Set the TabIndex of the CommandButton to a value greater than 0.
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Option Explicit
Private f As Boolean
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Interval = 500
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
f = Not f
If f Then
Form2.Show
Else
Unload Form2
Set Form2 = Nothing
End If
End Sub
Additional query words:
Keywords : kbservicepack kbFarEast kbIntl kbOSR250 kbVBp kbVBp500bug kbVBp600bug kbWinOS95 kbGrpVB kbVS600sp2 kbVS600SP1 kbVS600sp3fix
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 19, 1999