Releasing memory properly when using a BBS


Author
Message
Andria Jensen
Andria Jensen
StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I have numerous DevExpress grids and tree list controls in my application which I am binding to BOs using BusinessBindingSource controls.  I have recently discovered that DevExpress does a very poor job of releasing memory and disposing of their own object properly.  I have a lot of memory leaks coming up in my app because of this.  Now, to the part where SF is involved...I have been running memory profilers which are showing that the grids, trees, etc are still linked to the BBS which is preventing them from being disposed of properly at garbage collection. 

My theory is that the BBS is somehow dynamically creating columns in the grid or tree at runtime, but not manually disposing of them when it's unloaded.  DevExpress basically expects you to dispose of everything, so I'm wondering if somehow the BBS is still linked to the DevExpress controls and preventing them from being released from memory correctly.  Is this a possibility?

I can open and close a test form I have created without filling the BO that is linked to the BBS, and it releases all memory correctly when the form is closed.  If I fill the BO when opening the form, it will not release all memory once closed.  Any ideas here?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
             No problem, glad to help :)
Trent L. Taylor - 16 Years Ago
Andria Jensen - 16 Years Ago
Andria Jensen - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Purnell W Glenn - 10 Years Ago
Trent L. Taylor - 10 Years Ago
Danny Doobay - 11 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search