ilGenImages throwing exception

Started by weevil, November 23, 2005, 23:50:00

Previous topic - Next topic


I get a nasty exception when trying to use devIL to load images into my textures. What obvious things am i missing here? Do i need to init IL somehow prior to envoking ilGenImages?

My code:
   IntBuffer cILImage = BufferUtils.createIntBuffer(1);
    IL.ilGenImages( cILImage );

The VM stops when it reaches the ilGenImages.

Console output:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0

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.devil.IL.nilGenImages(Native Method)
	at org.lwjgl.devil.IL.ilGenImages(
	at SpinningBox.loadTexture(
	at SpinningBox.loadTextures(
	at SpinningBox.<init>(
	at SpinningBox.main(

Any insight will be appreciated


Most likely you forgot to call IL.create() before going into your texture loading code.


Hehe I simply wasn't aware that i needed to call IL.create(). Thanks a bunch lightbringer.