I am getting access violations in my application when exiting. The problem appears to be some cleanup code in wWinMaiCRTStartUp()that calls a pointer to an unitialized function (cccccccc()). The code apparently originated in a file:
That's the C Run Time and the source isn't published (that I know of anyway) from Microsoft. THat said, I've never seen this error either. It sounds like you have eitehr done something strange in modifying the app startup function, or maybe you have some global class instances that you're attempting to initialize before the app runs (e.g. MyClass instance = MyClass(params); in the global space).
I can't show the code because it is a very large project and I can't distill it into an example. It may be caused by something that I have done but I've already spent too much time trying to track it down with no results.
By the way, it's not at startup that the error occurs. wWinMainCRTStartup() does some intialization and then calls WinMain() which does not return until the application has been closed at which time it does some cleanup - that's where the problem is. The cleanup code is calling cccccccc() which indicates to me that it is some type of unitialized pointer to a function. I could probably simulate the effect by calling onexit((_onexit_t)0xcccccccc). (In fact, I just tried this in a Win32 MFC program and it behaved exactly as expected).
I have already spent too much time blindly changing things in my source code to see if anything will fix the problem. I really need to see that wWinMainCRTStartup() so I and step through it and find out where that bad function pointer is coming from.