Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Qt OpenGL memory leak

$
0
0
Hello A have a strange behavior in my Qt OpenGL widget based application. I just define a widget (inherit from QGLWidget) and in the paintGL function draw large number of 2D lines (1000 × 1000 for test) A define a timer wich tick updageGL slot each 20 ms The memory takes 10mo each second until process reach 1Go and then memory usage drop to 20mo and restart growing, … If, after painting my lines, I just put an instruction like glCallList () (which just draw 1 line), there is no more memory leaks (and all my previous lines are draw !!!) I have the same behavior with QT4.8.2 and VS 2008 and Qt5.0.1 with VS 2010. I dont understand why put a glCallList (or drawTExt for example) resolved the memory leak. My confiuration : Windows 7 64bits (compilation with x86) pro 8Go RAM Nvidia Quadro 1000M

Viewing all articles
Browse latest Browse all 18427

Trending Articles