A call to wglDeleteContext after a call to glewInit seems not to clean up the resources properly any more.
The following code snippet compiled for a 32 bit platform leads to a crash (caused by running out of memory) very quickly.
for (int i = 0; i < 10; ++i)
for (int j = 0; j < 100; ++j)
HGLRC hglrc = wglCreateContext(hdc);
if (hglrc != NULL)
// No memory leak if you do not call glewInit!
for (auto hglrc : hglrcs)
Reproducible on Windows 10 64 bit systems
with Radeon Pro Software for Enterprise drivers starting with version 18.Q3 and a
FirePro W2100 graphics adapter.
Previous driver versions do not have the issue.
Did anyone run into the same problem?
Thanks in advance
thank you for your quick reply.
I think the code snippet I've provided in my question is already a minimal one.
Making it run is very easy. All your developers have to do is to perform the following steps:
Please do not hesitate to contact me if you have any further questions.