   DevIL, ilDeleteImages()
  Hi, I'm using code::blocks with GNU Gcc compiler. Learning how to use DevIL with OpenGL. Encountered a problem with ilDeleteImages(). Whenever I call the ilDeleteImages function the application hangs when exiting. Pls tell me wat went wrong. Thanks. *The texture does rendered correctly*bool loadImage(char* filename){ilGenImages(1, &ImgId);// Generate Image NameilBindImage(ImgId);// Bind Image Name to Be Currentif (!ilLoadImage(filename)) {// Load the Bitmap and Check for ErrorsilDeleteImages(1, &ImgId);MessageBox(NULL, "Failed to load image", "ERROR", MB_OK | MB_ICONEXCLAMATION);return false;} // Send the Image to OpenGLg_iTexture = ilutGLBindTexImage();   //"This is the line that keep causing the application to hang upon exit"   ilDeleteImages(1, &ImgId);return true;}