Memory leak due to onCtlColor ?

Discussion in 'C Programming' started by mesushant@gmail.com, Apr 13, 2006.

  1. Guest

    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, 2006
    #1
    1. Advertising

  2. 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>
    Vladimir S. Oka, Apr 13, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. s.subbarayan

    Dynamic memory allocation and memory leak...

    s.subbarayan, Mar 18, 2005, in forum: C Programming
    Replies:
    10
    Views:
    681
    Eric Sosman
    Mar 22, 2005
  2. Fresh
    Replies:
    2
    Views:
    622
    Bo Persson
    Apr 22, 2008
  3. bernd
    Replies:
    10
    Views:
    2,219
    Gordon Beaton
    Aug 6, 2008
  4. cham
    Replies:
    5
    Views:
    757
  5. uncutstone
    Replies:
    5
    Views:
    132
    uncutstone
    May 16, 2006
Loading...

Share This Page