-- Update 2009/03/22
Recently I realized that the nvoglnt. dll crash is probably dueProgramFor example, if Gl. glableclientstate (GL. gl_texture_coord_array) is enabled );
HoweverCodeDoes not assign a value to texturecoordpointer, which may cause DLL crash.
Therefore, when writing code, you must double check this section.
Bytes -----------------------------------------------------------------------------------------------------------------
The machine graphics card is NVIDIA 8600gt. when running the joglprogram, the system error will be returned directly during the infinitus, and java.exe will crash, which is caused by nvoglnt. DLL caused, checked the information, found that because of NVIDIA OpenGL graphics card driver problems, sweat, once again speechless ah, OpenGL really did not position...
Later, I tried to set the compatibility when jogl was created. I didn't enable hardware acceleration and disabled all the advanced features. It was OK...
/**
* Called from within initcomponents ().
* Hint: to customize the generated code choose 'mimize Code' in the contextmenu
* Of the selected UI component you wish to cutomize in design mode.
* @ Return returns customized glcapabilities.
*/
Public glcapabilities createglcapabilites (){
Glcapabilities capabilities = new glcapabilities ();
Capabilities. sethardwareaccelerated (false );
Capabilities. setsamplebuffers (false );
// Try to enable 2x anti aliasing-shoshould be supported on most hardware
// Capabilities. setnumsamples (2 );
// Capabilities. setsamplebuffers (true );
Return capabilities;
}
--------------------------------------------
Khan, the fact is that there is no OK, the crash problem will still appear occasionally... In this case, I prefer to use the open-source software OpenGL rendering engine...