Kh?c ph?c: L?p i l?p l?i t?i v l?y Mtxdm.dll gy ra 1 MB r? b? nh? ?o

D?ch tiu ? D?ch tiu ?
ID c?a bi: 232351
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TRI?U CH?NG

Khi t?i v x?p d? Mtxdm.dll trong m?t v?ng l?p, m?t r? r? 1 MB b? nh? ?o ?c xem v?i m?i l?p thng qua cc v?ng l?p.

i?u ny l r?t c th? x?y ra trong cc ?ng d?ng ang s? d?ng m?t k?t n?i ODBC t?ng h?p v ang lm cho cc k?t n?i l?p i l?p l?i v disconnections t? b? my c s? d? li?u ph? tr?, ho?c cc ?ng d?ng ODBC lm cho nhi?u k?t n?i v cc disconnections ? m?t ph? tr? Oracle.

NGUYN NHN

S? r? b? nh? ?o ?c gy ra b?i m?t cu?c g?i ?n TerminateThread() trong Mtxdm.dll.

Khi k?t n?i t?ng h?p ?c s? d?ng trong m?t ?ng d?ng ODBC, ng?i qu?n l? Dispenser (Mtxdm.dll) ?c n?p ? qu?n l? h? bi k?t n?i ?c gi?i quy?t b?i m?t s?i cng nhn B?t ?u trong v?ng Mtxdm.dll.

Khi cc ?ng d?ng k?t thc, cc s?i cng nhn b? gi?t b?i m?t cu?c g?i ?n TerminateThread(), m s? khng lm s?ch v gi?i phng 1 MB b? nh? ?c c?p pht cho s?i ch? cng nhn ngn x?p.

Hnh vi tng t? ny c th? ?c nh?n th?y khi th?c hi?n l?p i l?p l?i cc k?t n?i v disconnections ?n m?t my ch? b? my c s? d? li?u Oracle, b?i v? tr?nh i?u khi?n Microsoft Oracle ODBC t?i Mtxdm.dll cho d k?t n?i chia ti nguyn ang ?c s? d?ng hay khng.

GI?I PHP

? gi?i quy?t v?n ? ny, c ?c gi b?n ghi d?ch v? m?i nh?t cho Windows NT 4.0 ho?c cc c?p nh?t ph?n m?m. Thng tin v? vi?c thu th?p cc gi b?n ghi d?ch v? m?i nh?t, xin vui l?ng h?y vo:
Thng tin v? vi?c thu th?p cc c?p nh?t ph?n m?m, lin h? v?i b?n ghi d?ch v? H? tr? S?n ph?m c?a Microsoft. Cho m?t danh sch ?y ? cc b?n ghi d?ch v? h? tr? Microsoft s?n ph?m i?n tho?i s? v thng tin v? chi ph h? tr?, xin vui l?ng i ?n ?a ch? sau y trn World Wide Web:
http://support.Microsoft.com/Default.aspx?SCID=FH;EN-US;CNTACTMS

Windows NT Server ho?c my tr?m 4,0

? gi?i quy?t v?n ? ny, c ?c gi b?n ghi d?ch v? m?i nh?t cho Windows NT 4.0 ho?c cc c?p nh?t ph?n m?m. Thng tin v? vi?c thu th?p cc gi b?n ghi d?ch v? m?i nh?t, xin vui l?ng h?y vo:
  • Windows Service Pack Center- hay -

  • 152734lm th? no ? c ?c gi b?n ghi d?ch v? m?i nh?t c?a windows nt 4.0
Thng tin v? vi?c thu th?p cc c?p nh?t ph?n m?m, lin h? v?i b?n ghi d?ch v? H? tr? S?n ph?m c?a Microsoft. Cho m?t danh sch ?y ? cc b?n ghi d?ch v? h? tr? Microsoft s?n ph?m i?n tho?i s? v thng tin v? chi ph h? tr?, xin vui l?ng i ?n ?a ch? sau y trn World Wide Web:
http://support.Microsoft.com/Default.aspx?SCID=FH;EN-US;CNTACTMS

Windows NT Server 4.0, Terminal Server Edition

? gi?i quy?t v?n ? ny, c ?c gi b?n ghi d?ch v? m?i nh?t cho Windows NT Server 4.0, Terminal Server Edition. ? bi?t thm chi ti?t, nh?p vo s? bi vi?t sau y ? xem cc bi vi?t trong cc C s? ki?n th?c Microsoft:
152734 Lm th? no ? c ?c gi b?n ghi d?ch v? m?i nh?t c?a Windows NT 4.0

T?NH TR?NG

Microsoft ? xc nh?n r?ng y l m?t v?n ? trong cc s?n ph?m c?a Microsoft ?c li?t k ? ?u c?a bi vi?t ny. V?n ? ny l?n ?u tin ?c s?a ch?a trong Windows NT Server Phin b?n 4.0, Terminal Server Edition Service Pack 6.

BI?T THM THNG TIN

H?ng d?n s? d?ng ci ?t chuyn bi?t Hotfix 051099a

Lu ?: ? c ?c hotfix ny, b?n ph?i lin h? v?i b?n ghi d?ch v? H? tr? S?n ph?m c?a Microsoft. Xin xem oan ? phn gi?i c?a bi vi?t ny cho bi?t thm thng tin.
  1. ng ho?c ngn ch?n b?t k? ?ng d?ng ho?c b?n ghi d?ch v? m ang s? d?ng Mtxdm.dll. i?u ny c th? bao g?m Internet Information Server (IIS), Microsoft giao d?ch my ch? (MTS), Microsoft phn ph?i giao d?ch i?u ph?i vin (DTC), v b?t k? ?ng d?ng ADO ho?c ODBC.
  2. T?i xu?ng hotfix (051099a.exe) vo m?t m?c tin th thoai t?m th?i b?t ln v ch?y n ? gi?i nn cc t?p sau:
    • Mmtxdm.dll
    • Readme.txt
  3. Xc ?nh v? tr v ?i tn Phin b?n hi?n t?i c?a Mtxdm.dll, m nn trong m?c tin th thoai \Winnt\System32 cho cc my tnh Windows NT, v trong m?c tin th thoai \Windows\System cho cc my tnh Windows 9 x.
  4. Sao chp b?n hotfix c?a Mtxdm.dll vo cng m?t v? tr, v kh?i ?ng l?i b?n ghi d?ch v? v cc ?ng d?ng c?a b?n.

Cc b?c ? t?o l?i hnh vi

T?o ra m?t ?ng d?ng giao di?n i?u khi?n C/c ++ b?ng cch s? d?ng o?n m? sau. Ch?y ?ng d?ng ny trong khi s? d?ng gim st hi?u su?t ? xem ?o byte cho ?ng d?ng.

Lu ?: m?u m? ny s? d?ng m?t ngu?n d? li?u ODBC k?t n?i v?i m?t ph? tr? Oracle, b?i v? tr?nh i?u khi?n Microsoft Oracle ODBC t?i Mtxdm.dll, v nhi?u hn n?a d? dng ch?ng minh v?n ?.
   #include        <windows.h>
   #include        <stdio.h>
   #include        <sql.h>
   #include        <sqlext.h>
   #include        <assert.h>

   #define CK_RT(x) if( x != SQL_SUCCESS && x != SQL_SUCCESS_WITH_INFO)    assert(0)

   void main(){
       HENV        henv;
       HDBC        hdbc;
       RETCODE     rc = SQL_SUCCESS;
       char        *dsnStr="DSN=OracleServer;UID=scott;pwd=tiger;";
       short       rtnLen = 0;
       UCHAR       rtnDSN[999] = "";
       int         i,x;


       for (i=0; i < 100; i++)
   	{
               rc = SQLAllocEnv(&henv);
               CK_RT(rc);
               rc = SQLAllocConnect(henv, &hdbc);
               CK_RT(rc);
               rc = SQLDriverConnect(hdbc,
                         NULL,
                         (unsigned char *)dsnStr,
                         strlen(dsnStr),
                         rtnDSN,
                         255,
                         &rtnLen,
                         SQL_DRIVER_NOPROMPT);

               CK_RT(rc);
               SQLDisconnect(hdbc);
               SQLFreeConnect(hdbc);
               SQLFreeEnv(henv);
	   }
   }
				

Thu?c tnh

ID c?a bi: 232351 - L?n xem xt sau cng: 13 Thang Sau 2012 - Xem xt l?i: 3.0
T? kha:
kbqfe kbhotfixserver kbbug kbfix kbmdac210fix kbmts200fix kbsdkodbc351fix kbvirtualmem kbmt KB232351 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny: 232351

Cung cp Phan hi

 

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