Memory leak due to onCtlColor ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mesushant@gmail.com

    Memory leak due to onCtlColor ?

    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.

  • Vladimir S. Oka

    #2
    Re: Memory leak due to onCtlColor ?

    mesushant@gmail .com opined:
    [color=blue]
    > 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.[/color]

    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 cbbrown@io.org, Christopher Browne)

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

    Comment

    Working...