Re: Memory...issues
- From: "Cor Ligthert[MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Thu, 27 Sep 2007 05:28:32 +0200
James,
Can you try what happens if you place the creating and accessing of your xTiff in a seperate method. That should be on a new stack and therefore go out of scoop everytime.
Cor
"James" <neg@xxxxxxxx> schreef in bericht news:Oks9Q4HAIHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
I have a record set of roughly 1200 records. The logic flow is like this:
Dim ds As New DataSet
Dim da As New SqlDataAdapter("SELECT * FROM Fax_Queue", objConnection)
da.Fill(ds, "Queue")
Dim dr As DataRow
Dim rpt as FaxReport = New FaxReport
For Each dr In ds.Tables("Queue").Rows
rpt.listid = dr("List_ID")
rpt.Run(False)
Dim xTIFF As DataDynamics.ActiveReports.Export.TIFF.TiffExport = New DataDynamics.ActiveReports.Export.Tiff.TiffExport
tiffPath = path & ".tiff"
xTIFF.Export(rpt.Document, tiffPath)
xTIFF.Dispose()
GC.Collect() ' ???
Dim del As New SqlCommand("DELETE FROM Tbl_Collection_Fax_Queue WHERE Queue_ID = " & dr("Queue_ID"), objConnection)
objConnection.Open()
del.ExecuteNonQuery()
objConnection.Close()
Next
As this application progresses and the TIFF files are generated, the memory consumed by this process increases to a point where it basically locks up. How can I prevent this memory leak? Is there a logic problem or can I forcibly release memory somehow? In my head this process should be consuming roughly the same amount of memory consistently.
Thanks for any help you can offer,
James
.
- References:
- Memory...issues
- From: James
- Memory...issues
- Prev by Date: Re: VS2003 and Vista
- Next by Date: Re: Convert Hex to Decimal in arraylist
- Previous by thread: Re: Memory...issues
- Next by thread: Re: Memory...issues
- Index(es):
Relevant Pages
|