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.phpIn 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?