3

我为 SFML 编写了一个包装器,如果需要,我可以替换我的游戏的渲染器。有效。然后我进行了重构,虽然它仍然可以编译,但在运行编译后的可执行文件时,我现在得到“无法初始化应用程序 0xc000005”。

什么会导致这样的错误?谷歌没有帮助。我正在使用 Windows XP。

4

3 回答 3

2

0xc000005ERROR_ACCESS_VIOLATION——你在某处有一个野指针。

于 2010-06-22T18:54:23.640 回答
1

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.

于 2010-06-22T19:08:49.737 回答
0

我相信您没有初始化 glew 并在代码中的某处使用它。尝试glewInit();在代码的开头放置某个位置。

于 2011-07-30T20:00:52.697 回答