a problem about wglMakeCurrent

Hello,everyone.There is a problem when I use wglMakeCurrent, who can give me some advice?

When call wglMakeCurrent,sometimes the vc++ debugger reports:access violation(0xc0000005). And most of times,it doesn’t report.


Can you give more precisions of your opgl app. If you try to call diferents RC and DC with the same thread, the access violation of the memory appears. in this case use multithreading (for more information, look for “multithreading” in the forum).