
GLControl resizing is memory-consume method?
Posted Wednesday, 18 January, 2012 - 08:00 by kkc0923 inHi, I started to use OpenTK recently. I make simple Window form with GLControl. GLControl is resized when Window form was risized. But when GLControl was resized, system memory usage has increased rapidly. This is bug? (When I resize window continuously, total memory usage is 3GB!)


Comments
Re: GLControl resizing is memory-consume method?
Could you show us the exact code you are using inside your resize event?
Re: GLControl resizing is memory-consume method?
I use simpley Dock property of GLControl. I set Dock property to "Fill". And there is only GLControl control.
Re: GLControl resizing is memory-consume method?
Oh, I found my problem maybe. I used draw methods in GLControl's Paint event. When I moved my draw methods from Paint event to Application_Idle event, memory is not increased! What is problem?