Hi Jimmy,

On Tue, Aug 25, 2009 at 6:55 AM, Jimmy Lin<[email protected]> wrote:
> I just found out when I create graphic context, if I don't set 
> inheritedWindowData for the trait, then everything is ok. but if I use window 
> form control's handle as inheritedWindowData and repeatly addView/removeView 
> 20~30 times, then I start to have memory leak. problem.
>
> Does anyone know why?

I don't have any answers to as to why.   The difference between the
two is that when you don't set inhertedWindowData then the OSG creates
the window and the graphics context, while if you inhert an existing
window then it'll only create the graphics context.  Perhaps the
graphics context isn't being cleaned up correctly in this case, or
perhaps the externally created window is being deleted before the
graphics context.  You'll need to put some break points/debugging into
the destruction/closing of the window to see what is happening in each
case.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to