Memory leak due to onCtlColor ?

M

mesushant

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.
 
V

Vladimir S. Oka

(e-mail address removed) 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 (e-mail address removed), Christopher Browne)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top