OPENGL memory leaks

OPENGL memory leaks

Hello from germany

I have just started with the Intel Inspector and wonder why it throws a lot of memory leak messages referring

to functios as wglCreateContext - wglMakeCurrent and so on.

All these handle were released at program exit, with error checking and everything looks fine.

Additionally it creates the same error multiple times - shows the same line of code..

I would be happy for any explaation or solution

kind regards

 Peter

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If your code does something like the following example:
...
HDC hdc = NULL;
HGLRC hglrc = NULL;

hglrc = wglCreateContext( hdc );
...
// Processing with OpenGL API functions
...
wglDeleteContext( hglrc );
...
then you could simply ignore that Inspector XE message.

Sergey is correct that if your actual code is safe (which his example is) you can just go ahead and ignore the messages or set up a suppression to automatically remove them.

 

We are currently in the process of doing some work to improve our handling of memory deallocated at_exit(). If you would like to be informed when we have an update and give us feedback on how it works for you, please send me an email. (holly.l.wilper@intel.com)

Hi Holly,

>>...We are currently in the process of doing some work to improve our handling of memory deallocated at_exit()...

It would be nice to learn more about that new technique. Thanks in advance.

Unfortunately I don't have that many details that I can give you, right now. I'll stick a mental pin in this topic to update it when there is more I can say. (sorry).

Leave a Comment

Please sign in to add a comment. Not a member? Join today