clmingxx 2019-05-02 23:55 采纳率: 0%
浏览 331

orge 没有为 OgreMain.dll 加载符号&异常: 0xC0000005

在orge提供的**ExampleApplication.h**文件中 if (!setup())处:
0x77B0AF68 (msvcr90.dll) (Project1.exe 中)处有未经处理的异常: 0xC0000005: 读取位置 0x6766632E 时发生访问冲突。
查看堆栈:
下面的框架可能不正确和/或缺失,没有为 OgreMain.dll 加载符号
具体位置为:
mRoot = OGRE_NEW Root(pluginsPath, mConfigPath + "ogre.cfg", mResourcePath + "Ogre.log");
setup()函数如下:

  virtual bool setup(void)
    {

        String pluginsPath;
        // only use plugins.cfg if not static
#ifndef OGRE_STATIC_LIB
#if OGRE_DEBUG_MODE
        pluginsPath = mResourcePath + "plugins_d.cfg";
#else
        pluginsPath = mResourcePath + "plugins.cfg";
#endif
#endif

        mRoot = OGRE_NEW Root(pluginsPath, 
            mConfigPath + "ogre.cfg", 
            mResourcePath + "Ogre.log");

        mOverlaySystem = OGRE_NEW OverlaySystem();
#ifdef OGRE_STATIC_LIB
        mStaticPluginLoader.load();
#endif
        setupResources();

        bool carryOn = configure();
        if (!carryOn) 
            return false;

        chooseSceneManager();
        createCamera();
        createViewports();
#ifdef INCLUDE_RTSHADER_SYSTEM
        // Initialize shader generator.
        carryOn = initializeShaderGenerator(mSceneMgr);
        if (!carryOn) 
            return false;
#endif

        // Set default mipmap level (NB some APIs ignore this)
        TextureManager::getSingleton().setDefaultNumMipmaps(5);

        // Create any resource listeners (for loading screens)
        createResourceListener();
        // Load resources
        loadResources();

        // Create the scene
        createScene();

        createFrameListener();

        return true;

    }

第一次补充:
经断点调试发现没有执行Root的构造函数就已经异常

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog
    • ¥15 Excel发现不可读取的内容