LWJGL
May 17, 2012, 03:02:40 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: ilGenImages throwing exception  (Read 3752 times)
weevil
Newbie
*
Posts: 3


« on: November 23, 2005, 15:50:00 »

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:
Code:
   IntBuffer cILImage = BufferUtils.createIntBuffer(1);
    IL.ilGenImages( cILImage );

The VM stops when it reaches the ilGenImages.

Console output:
Code:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

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(IL.java:341)
at SpinningBox.loadTexture(SpinningBox.java:218)
at SpinningBox.loadTextures(SpinningBox.java:100)
at SpinningBox.<init>(SpinningBox.java:39)
at SpinningBox.main(SpinningBox.java:33)
bla..bla..bla..


Any insight will be appreciated
Logged
lightbringer
Newbie
*
Posts: 37


Lone Wolf


WWW
« Reply #1 on: November 23, 2005, 16:07:58 »

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

weevil
Newbie
*
Posts: 3


« Reply #2 on: November 24, 2005, 08:47:20 »

Hehe I simply wasn't aware that i needed to call IL.create(). Thanks a bunch lightbringer.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!