FIX: ADO 2.5 ?????? ???? ??????? ??? ??????? ??? ??????? ?????

?????? ????????? ?????? ?????????
???? ???????: 282177 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ????? ???????? ??? ??????? ???????? ?????? ?????? ActiveX (ADO) ??? ?? ?? ???? ?????? ??? ???? ????? ???? ???? ?????? ???? ??? ???? ????? ???????. ?? ???? ??? ???? ?? ?????? ???? ADO ??? ?????? Recordset???????.

???? ?? Microsoft Data Access Components (MDAC) 2.5 ??? ???? ???? ?? ???? ?? MDAC 2.6.

?????

??????? ??? ??????? ??? ?????? ????? ???? ?????? (ATL) AtlMarshalPtrInProc ????? ??? ???????? ?? ????? ??????? ???? ??? ????????. ????? ??? ????? ??? ??????? ??? ??? ??????? ?????? ??????? ?????? ??? ????? ? ??? ??????? ?????? AtlFreeMarshalStream ?????? ??????? ??????? ???? ?????.

????

MDAC

??? ??? ???????? ??? ?????? ??? ???? ???? ???? ?? Microsoft MDAC 2.5. ?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
293312INFO: ????? ?????? ??? ???? MDAC 2.5 ???? ???????
??? ?? ???? ?????? ?????????? ?? ??? ??????? ???? ??????? ??????? ?? ????:
   Date          Version        Size               File name
   ------------------------------------------------------------

   12/14/2000    2.53.6013.0    491,792 bytes      Msado15.dll	
	
				

???? ??????? Windows 2000

??? ??? ???????? ??? ?????? ??? ???? ???? ???? ????? ??????? Windows 2000. ?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
260910????? ?????? ??? ???? ???? ???? ??????? Windows 2000
??? ?? ???? ?????? ?????????? ?? ??? ??????? ???? ??????? ??????? ?? ????:
   Date        Time    Version       Size       File name
   ----------------------------------------------------------
   5/29/2001   02:56p  2.52.6019.1   487,696    Msado15.dll
				

???? ??????

?? ???? ?? ?? ???? ???? ??????? ?? MDAC 2.5.

?????

MDAC

???? Microsoft ?? ??? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ???????. ?? ????? ??? ??????? ???? ??? ?? Microsoft MDAC 2.5 ?????? ????? ?????? Service Pack 3.

?? ???? ??? ??????? ?? MDAC 2.6.

???? ??????? Windows 2000

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????. ?? ????? ??? ??????? ???? ??? ?? ???? ?????? Service Pack 3 ?????? ?? Windows 2000.

??????? ????

???? ???? ??????? ??? predominantly ?? ????? ??? ???? ?????? ????? ?? ??? ???????? ??? ???????, ??? ???? ??????? ?????? ?? Microsoft (IIS) ? ???? ????????? ?? Microsoft "(MTS) / COM +. ?? ???? ??? ???? ?? ????? ??? ??? ??????? ??? ???? ??? ????? Microsoft Visual Basic ?????.

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

  1. ??? ????? ???????? ???????? ????? ?? ??? ??? ? ??? ???? "ADODBMem.vbs".
  2. ?? ???? ???????? ?? ?????? ??? ????? ???????? ???? ??????? ?????? ?? Windows (CScript.exe). ??? ???? ??????:
    cscript ADODBMem.vbs
  3. ??? ????????? ??? ????? "?????? ??????" (PerfMon) ? ???? ?????? ????? ?????? ?????? CScript ?????? ???????.
  4. ?????? ??? ???????? ????? ?? ?????? ???? ????? ?????? ADO ??? ?? ???? ????. ???? ?? PerfMon ???? ????? ????? ??????? ??????? ?? ????? "?" ???? ????????.

??? ?????

'//////////////////////////////////////////////////////////////////////////////////////////////// 
' +
'   File:       adodbmem.vbs
'
'   Copyright:  (c) 2000 Microsoft Corporation
'
'   Contents:   Creates/destroys ADODB objects and allows to see memory usage (leaks).
'
'   Comments:   CScript.exe v2.0 required (comes with Windows 2000; just copy to run under NT4)
'               WScript.exe will NOT work
'
'               Usage: cscript adodbmem.vbs
'               Use PerfMon to see the counter "Private Bytes" in process "cscript"
' -
'//////////////////////////////////////////////////////////////////////////////////////////////// 

Const REPT_CNT = 1000

Private Function CreateOnce(objName, bStop)
  Dim obj
  On Error Resume Next
  If bStop = True Then
    WScript.StdOut.Write  "Create an instance of " & objName & ">"
    WScript.StdIn.ReadLine
  End If
  Set obj = CreateObject(objName)
  If Err.Number <> 0 Then
    WScript.Echo "CreateObject(" & objName &") failed: " & Err.Description
    CreateOnce = False
    Exit Function
  End If
  If bStop = True Then
    WScript.StdOut.Write objName & " created. Destroy>"
    WScript.StdIn.ReadLine
  End If
  Set obj = Nothing
  If bStop = True Then
    WScript.Echo objName & " destroyed."
  End If
  CreateOnce = True
End Function

'//////////////////////////////////////////////////////////////////////////////////////////////// 

Private Sub TryObject(objName)
  Dim i
  WScript.StdOut.Write "Create and destroy " & objName & " " & REPT_CNT & " times>"
  WScript.StdIn.ReadLine
  For i = 1 To REPT_CNT
    If Not CreateOnce(objName, False) Then Exit For
  Next
  WScript.StdOut.Write "Done. "
End Sub

'//////////////////////////////////////////////////////////////////////////////////////////////// 

Private Sub ShowVersion
  Dim sVer
  Dim o
  Set o = CreateObject("ADODB.Connection")
  sVer = o.Version
  Set o = Nothing
  WScript.StdOut.Write "ADODB version " & sVer & " loaded. Hit Enter to start>"
  WScript.StdIn.ReadLine
End Sub

'//////////////////////////////////////////////////////////////////////////////////////////////// 

Public sub Main()
  WScript.StdOut.Write "ADODB memory leak test." & vbNewLine & _
                "Connect Perfmon: process - cscript, counters - Private Bytes." & vbNewLine & _
                "Hit Enter then ready>"
  WScript.StdIn.ReadLine
  ShowVersion

  TryObject "ADODB.Command"
  TryObject "ADODB.Stream"
  TryObject "ADODB.Recordset"
  TryObject "ADODB.Record"

  WScript.StdOut.Write "All Done. Hit Enter to exit>"
  WScript.StdIn.ReadLine
End sub

Call Main()
Wscript.Quit 0

'//////////////////////////////////////////////////////////////////////////////////////////////// 
'                                  End of file "adodbmem.vbs"
'//////////////////////////////////////////////////////////////////////////////////////////////// 

				

???????

???? ???????: 282177 - ????? ??? ??????: 28/???? ??????/1435 - ??????: 3.2
????? ???
  • Microsoft Data Access Components 2.5 Service Pack 1
  • Microsoft Data Access Components 2.5
????? ??????: 
kbnosurvey kbarchive kbmt kbhotfixserver kbqfe kbmdac250sp3fix kbado260fix kbbug kbfix kbmdac260fix kbwin2000sp3fix KB282177 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????282177

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

 

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