This means that Win32 failed to create a window (CreateWindow call).
I would say that it is either some generic nasty bug in your code, overwriting something somewhere, maybe it is a method call on destructed object. Or, alternatively, something in your code accidentally creates a log of windows and you run out of HWND per process limit (10000).