????? ??????? ??????? ??? ????? Visual Basic 2005 ?? ????? Visual Basic 2008 ????? ???? ?? ???

?????? ????????? ?????? ?????????
???? ???????: 919481 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

???? ??? ????????? ??????:
  • ????? ????? Microsoft Visual Basic ?? Microsoft Visual Studio 2005 ?? ?? 2008 Visual Studio.
  • ????? Visual Basic ????? ??? ???.
  • ????? ????? ??? ???.
  • ????? Visual Basic ????? ???? ?? ?????.
  • ????? ??????? Visual Basic ?? ??? ???????.
?? ??? ?????????? ??? ????? ????? Visual Basic ??????? ??????? ????.

????????? ?????? ?????? ??? ?????? ??? ?????? ???????:
  • ??? ????? ??????? Visual Basic ???????? ???? ?????.
  • ???? ????? Visual Basic ??? ?????? ????? ???? ????? ??? ???. ??? ??? ??? ????? ?????? ????? ???? ? ??????? ?????? ????? ?? OutOfMemoryException ?? "???? ???????" ???. ??? ???? ??????? ????? ????? Visual Basic ??? ???? ????? ??? ?????? ?????.

?????

???? ??? ??????? ????? ??? ????? ??????? ????? ???? ?? Visual Studio 2005 ?? ?? 2008 Visual Studio ????? ?????? ????? ??? ????? ???????? ???? ?? ???????. ???? ???? ?? ?????? ??? ??? ???? ????? ??? ??? ??? ???????? ??? ??? ??????? ????? ???? ????????. ???? ??? ?????? ??? ????? ??????? ???????.

????

??? ??? ???????? ?????? ???? ????? ???????.

??????? 1: ????? ????? ??????? Visual Basic

????? ????? ????? ??????? Visual Basic. ??? ?????? ????? ??? ????? ???????.

??????? 2: ????? ??????? Visual Basic ?? ??? ???????

?????? ????? ????? Visual Basic ?? ??? ???????. ??? ????? ????? Visual Basic ???? ?? ?????? ??????? ?? ??? ????? ?? ???? ??????? ??????? ??? ????? ???? ?? ????? ???? ????? ??? ???.

??????? ????

????? ????? ????? ???????

  1. ??? ????? Visual Studio 2005 ?? 2008 Visual Studio.
  2. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????.
  3. ??? ????? Project ? ???? ??? Visual Basic. ??? ?? ????? ?? ?????? ??? ????? Visual Basic ????? ???? ???? ?? ???? ??? Visual Basic.
  4. ??? ????? ? ???? ??? ????? ???? ??????.
  5. ???? ??? ????? ?? ???? ??? ?????.
  6. ??????? ???? ????????? ???????? ?? ?????? "??????? ??????" ???????? ???????? ???????.
    Module Module1
    
      Private Sub CreateClassWithEvent()
        Dim TestClass As New CLeak
      End Sub
    
      Sub Main()               
        ' This loop infinitely creates a class that contains an event.
        While True
          CreateClassWithEvent()
          System.GC.Collect()
          System.GC.WaitForPendingFinalizers()
          Threading.Thread.Sleep(50)
        End While
      End Sub
    
    End Module
    
    Class CLeak
      Event myEvent()
    End Class
    
  7. ?? ??????? ????? ? ???? ??? ??? ???????.

???????

???? ???????: 919481 - ????? ??? ??????: 30/???? ?????/1430 - ??????: 2.0
????? ???
  • Microsoft Visual Studio 2008 Standard Edition
  • Microsoft Visual Studio 2008 Professional Edition
  • Microsoft Visual Studio 2005 Team System Architect Edition
  • Microsoft Visual Studio 2005 Team System Developer Edition
  • Microsoft Visual Studio 2005 Team System Test Edition
  • Microsoft Visual Studio 2005 Team System Team Foundation:
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Basic 2005
????? ??????: 
kbmt kbtshoot kbprb KB919481 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????919481

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com