"unable to initialize application 0xc000005"
I wrote a wrapper for SFML that would allow me to replace the renderer for my game if I needed to. It worke开发者_开发百科d. Then I refactored and while it still compiles, I now get "unable to initialize application 0xc000005" when running the compiled executable.
What would cause such an error? Google was unhelpful. I'm using Windows XP.
0xc000005
is ERROR_ACCESS_VIOLATION
-- you've got a wild pointer somewhere.
I occasionally gotten this error when I have the following setup:
Application linked against X.lib, which causes a dynamic load of X.dll X.dll linked against Y.lib, which causes a dynamic load of Y.dll
Run application when X.dll is in the path, but not Y.dll.
I believe you didn't initialize glew and used it somewhere in your code. Try putting glewInit();
somewhere at start of your code.
精彩评论