English 中文(简体)
活着的土崩碰撞
原标题:jogl native crash on call to glDisable

我有一只(native)玩忽职守的手法(我不认为这套车的具体细节在此很重要——这是厄立特里亚国防军发出的呼吁)。

My question is really about how it is possible that glDisable could cause a native crash. It s always being passed a valid flag for disabling.

我对此有两点看法:

(1) 制图卡包(尽管我已尝试更新司机,但只是在一些电脑上才出现,因此仍然有可能把卡相连接)。

2) Java的记忆量很大。 我不知道,如果能够分配太多的记忆,就会发生本土法典中的坏事。 虽然这只是 Java的记忆,而并非整个系统记忆,但我认为这一错误将显示为 Java的错误。

Any thoughts on how this could actually happen?

问题回答

Most of the time OpenGL will handle it s own errors by just ignoring the call with an error in it, but there are a few errors that will crash your application. The only ones I ve ever run into are access violations and bad drivers. I have the feeling that it s not the glDisable call (which can only hit a GL_INVALID_ENUM or GL_INVALID_OPERATION error that OpenGL itself handles with glGetError), but the one before that.

围绕该错误研究该代码是很明智的,但Im将假设该代码在文字载荷中(glTexImage2D)或提要(gl*PointerglDraw*)。 如果您的长短变量大于对文本/版面的实际记忆,开放式GL将仍然试图从这些地址读取,而非洲顾问办应当放弃一个出入例外。 双重核对这些变量,并记住除<代码>glDraw*外,所有用途均使用一定长度的电话。

如果这不是你的问题,那么,请参见gl 可辨明的电话是第一次实际使用 开放式自由党打电话给你,错误是,自由党可以发现开放式32。 dll or libgl. 或者不管开放式文化运动的执行情况如何,都属于贵组织。 在此情况下,你刚刚需要安装适当的司机,并打工。 有时,如果你要求采用一种在你的司机所支持的版本中引入的开放利比里亚的方法,那么你就会犯同样的错误。 您可以用<代码>glGetString(GL_VERSION)核对你的开放式GL版本。





相关问题
Accessing native C++ data from managed C++

I have an native C++ library which makes use of a large static buffer (it acquires data from a device). Let s say this buffer is defined like this: unsigned char LargeBuffer[1000000]; Now I would ...

On Developing Native Windows Executables

Which technology stack do you recommend for developing native windows executable (has GUI), other than .NET stack? Other that C++ (MFC, ...) some could be named; yet which one is mature and pragmatic ...

Compiling C# to Native?

I think I m somewhat confused about compiling .NET byte-code to native code, or maybe I m confused about the end result. So please bear with me as I try to sort through what I think I understand so ...

C++/CLI : Casting from unmanaged enum to managed enum

What is the correct way of casting (in C++/CLI) from a native code enum to a managed code enum which contain the same enum values? Is there any difference with using the C# way of casting like for ...

How to preload custom colors in SWT ColorDialog

my application users the SWT Color Cell Editor to set a color property. This class in turn users the native color dialog - which offers preset and custom colors. My users are frustrated because ...

热门标签