Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCMatPack Matrix and Analysis Tools (C# and VB)
 Memory issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dg773

4 Posts

Posted - 09 Jun 2009 :  10:12:51  Show Profile  Reply with Quote
I am getting out of memory errors after performing large numbers of resize(), DeleteCol(), and DeleteRow operations on large DDMat instances based on the 8/8/2008 version of the binaries. I presume that there is an internal array copy involved for each of these operations: is there possibly a bug in which you are holding references to the old arrays, so they are not being garbage collected?

Any other ideas on how I can work around this? Recoding everything to avoid making those calls would be a lot of work.

Thanks!

quinncurtis

1534 Posts

Posted - 09 Jun 2009 :  11:45:32  Show Profile  Reply with Quote
We aren't aware of any problem like you describe.

More details might help. What are the dimensions of the matrices. How many resize, delete row and delete column operations.

Can you supply us with a simple example program that reproduces the problem?

Have you inserted a GC.Collect() call after a large number of operations, just to force the garbage collection?
Go to Top of Page

dg773

4 Posts

Posted - 18 Jun 2009 :  05:50:34  Show Profile  Reply with Quote
It looks as if calling GC.Collect() solves the problem, though I haven't completed a full test run yet.

Hard to believe that the garbage collector would need to be triggered manually, but apparently so.

Thanks for the response.
Go to Top of Page

quinncurtis

1534 Posts

Posted - 18 Jun 2009 :  11:43:24  Show Profile  Reply with Quote
Don't know either.

However, deleting large numbers of rows and columns, one row at a time, but in a loop, would be horrendously inefficient. If you know you are going to delete a large block of rows/columns, it would be more efficient to create a new matrix of the proper size, and copy (not insert) over just the rows/columns you want.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07