none
opengl 内存访问异常 RRS feed

  • 问题

  • 程序debug提示“xxx.exe 中的 0x562a533a 处有未经处理的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突”,指在glu32.dll 。

    异常发生时,绘制复杂多边形的点数据为错乱的无效数据,代码在"gluTessEndPolygon(tess);";在数据正常时程序运行正常。

    这种情况应该如何处理,应该在接口调用前判断数据的正确性吗?

    2013年11月25日 6:58

答案

  • 你好,

    关于异常“0xC0000005” 的处理,请尝试在代码中避免使用空指针。具体请参看 Error First-chance exception at 0x00000000 in hw0-windows.exe: 0xC0000005: Access violation executing location 0x00000000 .

    另外,本论坛主要讨论关于Visual C++语言,编译器的问题。如果有关于OpenGL的深入问题,请考虑在以下论坛张贴以获取更好的回复:

    http://www.opengl.org/discussion_boards/forum.php

    感谢你对本论坛的支持。

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年11月26日 7:27
    版主