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 / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Tooltip not releasing memory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FredC - 29 Aug 2007 20:06 GMT
My application uses the tooltip to display "realtime" data. When a user
hovers over a control, information like temperatures and pressures are
displayed in the tooltip.

Using tootip.SetToolTip(controlName,text) the controls tooltip is updated
every second. There are 50+ of these controls on a form.

I have used perfmon and graphed the working set of my application to track
this problem to the tooltip method. With tooltip.SetToolTip commented out,
the working set graph is flat i.e. working set memory stays constant. Calling
tooltip.SetToolTip, the working set memory steadily increases until my
application stops responding and I can't start other applications.

Any Comments?
Ignacio Machin ( .NET/ C# MVP ) - 29 Aug 2007 20:16 GMT
Hi,

Are you creating new tooltips each time?
How are you refreshing the info?

Without more details we can not pinpoint where theproblem is

You are on a good path, monitor the memory use when the tooltip is active
and instead of getting the real data put some dummy data. See when is that
the memory use is coming from.

> My application uses the tooltip to display "realtime" data. When a user
> hovers over a control, information like temperatures and pressures are
[quoted text clipped - 11 lines]
>
> Any Comments?

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.