CDC invalid handle 0xC0000008
Posted on 2007-04-04
I just added some new code to a program that I've been using a CDC object with for printing... I didn't modify any code that modifies the CDC object but when printing I'm now getting a "first-chance exception in MyProgram.exe (NTDLL.DLL): 0xC0000008: Invalid Handle." This happens inside a CDC.DrawText call... The internal m_hDC looks like it's pointing at a valid location... I'm not sure how to find the source of this bug...
Any comments are very appreciated - I'm quite stuck...