Just a stupid question
but, how do you use the two method gl.bindProgramsARB & gl.genProgramsARB ?
Because I can’t make them working…
In my glInit() code, I wrote :
int VertexShader;
gl.genProgramsARB(1, VertexShader);
gl.bindProgramARB(GL.VERTEX_PROGRAM_ARB, VertexShader);
And here is the output :
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x69641BD4
Function=[Unknown.]
Library=C:\WINDOWS\System32\nvoglnt.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at org.lwjgl.opengl.GL.genProgramsARB(Native Method)
at VertexShader01.init(VertexShader01.java:174)
at VertexShader01.main(VertexShader01.java:118)
Dynamic libraries:
0x00400000 - 0x00406000 c:\thomas\java\jdk1.4.2\jre\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x7807F000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08136000 c:\thomas\java\jdk1.4.2\jre\bin\client\jvm.dll
0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 c:\thomas\java\jdk1.4.2\jre\bin\hpi.dll
0x00390000 - 0x0039E000 c:\thomas\java\jdk1.4.2\jre\bin\verify.dll
0x003A0000 - 0x003B8000 c:\thomas\java\jdk1.4.2\jre\bin\java.dll
0x003C0000 - 0x003CD000 c:\thomas\java\jdk1.4.2\jre\bin\zip.dll
0x02C60000 - 0x02C9B000 C:\Thomas\Java\Jdk1.4.2\jre\bin\lwjgl.dll
0x72280000 - 0x722A8000 C:\WINDOWS\System32\DINPUT.dll
0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll
0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll
0x73760000 - 0x737A4000 C:\WINDOWS\System32\DDRAW.dll
0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
0x688F0000 - 0x688F9000 C:\WINDOWS\System32\HID.DLL
0x76670000 - 0x76757000 C:\WINDOWS\System32\SETUPAPI.DLL
0x69500000 - 0x6986F000 C:\WINDOWS\System32\nvoglnt.dll
0x61220000 - 0x61232000 C:\Program Files\Microsoft Hardware\Mouse\MSH_ZWF.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 476K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 80% used [0x10010000, 0x100770a0, 0x10090000)
from space 64K, 100% used [0x100a0000, 0x100b0000, 0x100b0000)
to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
tenured generation total 1408K, used 57K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 4% used [0x104f0000, 0x104fe5c0, 0x104fe600, 0x10650000)
compacting perm gen total 4096K, used 1471K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 35% used [0x14010000, 0x1417fe60, 0x14180000, 0x14410000)
Local Time = Mon Apr 21 10:54:23 2003
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b19 mixed mode)
#
Ugh, isn’t it ?
So if someone can help me…
++
Chman