I iamtalent Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-14 #1 入题,无论是用WINDOWS的API函数还是套用DELPHI的TTCPCLIENT控件都有此内存泄露现象,请教高人
I iamtalent Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-14 #2 while 1=1 do begin mytcpclient := tTcpclient.creat(nil); MyTcpClient.BlockMode := bmBlocking; MyTcpClient.RemoteHost := RemoteHost; MyTcpClient.RemotePort := RemotePort; if MyTcpClient.connect then ;// 4K内存++ MyTcpClient.free; end;
while 1=1 do begin mytcpclient := tTcpclient.creat(nil); MyTcpClient.BlockMode := bmBlocking; MyTcpClient.RemoteHost := RemoteHost; MyTcpClient.RemotePort := RemotePort; if MyTcpClient.connect then ;// 4K内存++ MyTcpClient.free; end;
Y ylong.com Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-16 #4 这应该算是正常的吧?系统维护一个Socket连接,怎么不占用内存??