Re: Memory leak in ado
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 14 Apr 2008 08:45:19 -0400
That was the extent of the help I could offer. Sorry.
I'm not clear why the recordset needs to stay open continuously. Why not
persist it to disc and reopen it as necessary?
Zaza Turmanidze wrote:
Hi Bob,
1. My recordset must be keep open because end-user must delete and
add some parts of current recordset.
2. I tried my code in MDAC 2.8 and this problem still active
Any help would be appreciated.
"Bob Barrows [MVP]" wrote:
Zaza Turmanidze wrote:
Hi,
I'm using ADO 2.7 and have memory leak when I try several times add
and delete records. See code (VB6)
Dim RS As ADODB.Recordset
Private Sub Main()
Dim counter As Long
Set RS = New ADODB.Recordset
RS.Fields.Append "Name", adVarChar, 255
RS.Open , , , adLockOptimistic
For counter = 1 To 100
Add_Records
Delete_Records
Next
MsgBox "Complete"
End Sub
The only issue I can see is that you never close the recordset.
Try upgrading to MDAC 2.8.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- Memory leak in ado
- From: Zaza Turmanidze
- Re: Memory leak in ado
- From: Bob Barrows [MVP]
- Re: Memory leak in ado
- From: Zaza Turmanidze
- Memory leak in ado
- Prev by Date: Re: Memory leak in ado
- Next by Date: ActiveX error in odd location...
- Previous by thread: Re: Memory leak in ado
- Next by thread: ActiveX error in odd location...
- Index(es):
Relevant Pages
|
|