Skip to content

在vs2019中运行报错std::out_of_range是什么原因呢? #1

Description

@i2s-sys

在配置好环境,修改了test.obj文件路径之后,但是出现了一个异常:
0x775EA6E2 处(位于 OpenGLTest01.exe 中)有未经处理的异常: Microsoft C++ 异常: std::out_of_range,位于内存位置 0x00CFDF60 处,经过debug,我发现出现异常的地方在MyModel.cpp的这句话中:
string mtlPath = directory + '/' + split(objCode.substr(mtlPathStart, mtlPathEnd - mtlPathStart), ' ')[0];
博主能帮我解决这个问题,或者提出一些我可能错过的建议吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions