StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
How to properly dispose a BO?
How to properly dispose a BO?
Post Reply
Like
0
How to properly dispose a BO?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
HOT
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
I have a process that will load a couple of million records in BO to do a duplicate record search. My process will import thousands (360K+) of records and then I need to make sure those records does not exist in the database, so instead of querying the data 360k+, I load a BO with all possible duplicate records to check against and this is the million records BO.
Now the problem is that even when I do a BO.Clear to remove those records the application keeps using a lot of memory (over 1gb) and that memory is not released until the whole application is closed, so when the import process starts again, it will blow up with a not enough memory to complete the process.
So what should I do in order to make sure that the memory used once the million record BO is filled is released when using BO.Clear?
Also I am open to suggestions to change my approach if I need to.
Thanks!
Edhy Rijo
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
How to properly dispose a BO?
Edhy Rijo
-
15 Years Ago
BOs implement IDisposable, so you need to call Dispose method on it in...
Greg McGuffey
-
15 Years Ago
Hi Greg,
Thanks for jump in here.
This is a bit...
Edhy Rijo
-
15 Years Ago
I kind of wondered when you asked the question...seemed too easy! ;)...
Greg McGuffey
-
15 Years Ago
Hi Greg,
Yeap, I believe the BackgroundWorker may have...
Edhy Rijo
-
15 Years Ago
Hi Edhy,
I think my approach would be to do this in the...
Peter Jones
-
15 Years Ago
Hi Peter,
Thanks for jump in.
The problem is not...
Edhy Rijo
-
15 Years Ago
Should be pretty easy to find with a memory profiler, I use ANTS and...
Keith Chisarik
-
15 Years Ago
Hi Keith,
Thanks for the reference, I downloaded the trial...
Edhy Rijo
-
15 Years Ago
Hi Trent,
In this application I am following the same code...
Edhy Rijo
-
15 Years Ago
To All:
We have made some relatively large changes within...
Trent L. Taylor
-
15 Years Ago
Hi Trent,
Those are great news. Thanks!
Beside...
Edhy Rijo
-
15 Years Ago
Edhy, The offending line of code within the StrataFlix sample is...
Trent L. Taylor
-
15 Years Ago
Thanks a lot Trent, I really appreciate the time you are taking on...
Edhy Rijo
-
15 Years Ago
For a further test, I 100% removed StrataFrame from the formula....
Trent L. Taylor
-
15 Years Ago
One more thing worth noting. A reference does stick around, but only...
Trent L. Taylor
-
15 Years Ago
It does look to be a .NET issue. Once I started looking this up on...
Trent L. Taylor
-
15 Years Ago
Hi Trent,
Yes I got the same results in ANTS. During the...
Edhy Rijo
-
15 Years Ago
Here is some information I found on the web about how to overcome the...
Edhy Rijo
-
15 Years Ago
Hi Trent,
Have you have a chance to take a look at this...
Edhy Rijo
-
15 Years Ago
A little. As we had discussed, this is something that we reproduced...
Trent L. Taylor
-
15 Years Ago
Thanks!
Edhy Rijo
-
15 Years Ago
Hi Trent,
Will the new SF release 1.7.0.6 have any effect...
Edhy Rijo
-
14 Years Ago
Most likely the two are unrelated since the code you are referring to...
Trent L. Taylor
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search