Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Memory leak due to onCtlColor ?

Reply
Thread Tools

Memory leak due to onCtlColor ?

 
 
mesushant@gmail.com
Guest
Posts: n/a
 
      04-13-2006
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.

 
Reply With Quote
 
 
 
 
Vladimir S. Oka
Guest
Posts: n/a
 
      04-13-2006
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 , Christopher Browne)

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak due to too many threads? bernd Java 10 08-06-2008 12:50 PM
How to due with "warning LNK4075: ignoring '/INCREMENTAL' due to Fresh C++ 2 04-22-2008 09:03 PM
Leak or no leak ?? Richard Heathfield C Programming 4 07-10-2006 11:37 AM
Socket broken due to socket resource leak??? uncutstone Ruby 5 05-16-2006 02:21 PM
Dynamic memory allocation and memory leak... s.subbarayan C Programming 10 03-22-2005 02:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57