By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Memory leak due to onCtlColor ?

P: n/a
i have a tab control whose third tab contains the 8 static boxes which
show some basic colors and i have painted them on onCtlColor by
returning appropriate color brush for each static control.
But when i move from second tab to third the gdi object used always
increses by 8 that i found in one of the memory leak detection
software. So is their any way to delete these brushes.

Apr 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
me*******@gmail.com opined:
i have a tab control whose third tab contains the 8 static boxes
which show some basic colors and i have painted them on onCtlColor by
returning appropriate color brush for each static control.
But when i move from second tab to third the gdi object used always
increses by 8 that i found in one of the memory leak detection
software. So is their any way to delete these brushes.


1. Your post is off topic.
2. You did not show any code, even it it was.
3. You don't even tell what framework you're using.
4. You didn't even say what language you're using.

Correct 2.-4., and then re-post in the group dealing with your
particular OS/implementation/framework (this will fix 1.).

--
Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for
Linux...
(By cb*****@io.org, Christopher Browne)

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

Apr 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.