Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / November 2007

Tip: Looking for answers? Try searching our database.

DataGridView Custom cell painting memory leak

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Blackbourn - 19 Nov 2007 11:22 GMT
Hi,

I have a DataGridView on my form which is binded to a collection of custom
business objects. The collection inherits from BindingList<T>. The objects
implement INotifyPropertyChanged for updating the DataGridView when the
object properties change. I also have a custom column which hosts a custom
control that is used to edit the cells in the bound objects.  The custom
column also overrides the pain method which enables me to paint the cell the
way I need (change the background of the cell for 0.5 secs whenever a certain
property in the bound object changes)

Everything works fine initially, but the application eats up memory all the
time and it does not release it, and after 5-6 hours it becomes almost
unusable.

Has anyone expirience anything like this and if yes is there a solution.

Thanks in Advance
Rob Blackbourn - 19 Nov 2007 12:25 GMT
Curiously the memory gets reclaimed when I minimize then maximize the app.

> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks in Advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.