Nevron Forum
Home
»
Nevron Vision for NET
»
Nevron User Interface for .NET
»
GDI leak in NTextBox?
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron User Interface for .NET
»
GDI leak in NTextBox?
GDI leak in NTextBox?
Post Reply
GDI leak in NTextBox?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Craig Swearingen
Craig Swearingen
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 99,
Visits: 654
I've been testing my application looking for leaks. Specifically, looking for GDI leaks I've been using the Bear tool to help with this:
http://thesz.diecru.eu/content/bear.php
In my application I have a global Font object that I use in various places within my application. On one of my windows I set the Font property to be this global Font on both an NTextBox and an NTreeViewEx widget. When loading this window and viewing in the Bear tool I see the application GDI Font total go up by one. When I close this window the GDI Font total doesn't change though I know my window is being disposed of correctly. Every time I open and close the window my GDI Font total goes up one more.
When I stop assigning the window's NTextBox Font property my global Font object I don't see this happening in the Bear tool. It seems like the NTextBox is not disposing of the Font its creating when the widget is disposed. Is there a Font GDI leak in the NTextBox code?
Reply
Like
0
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello Craig,
Could you check this issue with System.Windows.Forms.TextBox instead of NTextBox because NTextBox inherits from it, and NTextBox does not use Font property anywhere in its implementation.
Best Regards,
Nevron Support Team
Reply
Like
0
Craig Swearingen
Craig Swearingen
posted 10 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 99,
Visits: 654
Thanks for the idea. Yes, you're right. When I replace the NTextBox with a TextBox I continue to see the same issue that looks like a leak. Not sure it is but its definitely not a Nevron issue.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search