尝试加载纹理叠加层后出现奇怪的访问冲突 [英] Strange Access Violation after Attempting to Load a Texture Overlay

查看:73
本文介绍了尝试加载纹理叠加层后出现奇怪的访问冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试将OpenGL Superbible中的"TextureRect"示例移植到我的游戏引擎,以便为纹理叠加添加支持.但是,当我加载要在叠加层中使用的纹理时,会出现以下异常:

SurviveExperimental.exe中0x771a15de(ntdll.dll)的未处理异常:0xC0000005:访问冲突读取位置0x08c3a000.

当我删除调用加载纹理叠加层的方法的行时,程序运行正常.我认为这与纹理加载无关,因为我的程序中还有其他纹理,它们工作得很好.

我要加载的纹理文件与其他纹理文件位于同一文件夹中.

系统规格:
Windows 7企业版64bit
NVIDIA GeForce GT 545
英特尔酷睿i7 3.40 GHz处理器(8核)

任何人都知道发生了什么或如何解决?

在此先感谢!

Hello,

I am trying to port the ''TextureRect'' sample from the OpenGL Superbible to my game engine so I can add support for texture overlays. However, when I load the texture to be used in the overlay, I get this exception:

Unhandled exception at 0x771a15de (ntdll.dll) in SurviveExperimental.exe: 0xC0000005: Access violation reading location 0x08c3a000.

When I remove the line that calls the method that loads the texture overlay, the program works fine. I don''t think it has to do with texture loading though, because there are other textures in my program and they work just fine.

The texture file I''m trying to load is in the same folder as the other texture files.

System Specs:
Windows 7 Enterprise 64bit
NVIDIA GeForce GT 545
Intel Core i7 3.40 GHz Processor (8 Cores)

Anyone have any idea what''s going on or how to fix it?

Thanks in advance!

推荐答案



也许您可以通过该线程解决您的问题,否则请与我们分享您的代码.

http://www.codeguru.com/forum/showthread.php?t=205140 [ ^ ]

问候
Hi,

maybe you solve your problem with this thread, otherwise please share your code with us.

http://www.codeguru.com/forum/showthread.php?t=205140[^]

Regards


这篇关于尝试加载纹理叠加层后出现奇怪的访问冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆