Resource leaks in wglCreateContext()

Hi,

I’m trying to deal with a weird problem I see. Under Windows NT 4.0, it seems that wglCreateContext() allocates between 2 to 4 handles (viewed using Performance monitor), and wglDeleteContext() deletes usually none.

I believe that this explains a problem I’ve noticed in our application (We get to around 4000 handles open, and then crash).

Has anybody noticed something like that ? Any pointers or something to look at ?

Thanks,
Ors.

What service pack of Windows NT 4.0 are you using and what graphics card / drivers?


Just give me SMP.