   VS2008 & Ogre3D: access violation when loading some PNG in debug mode
  Hello.I posted a similar thread on the Ogre3D forums but I suspect that my problem is not directly related to Ogre3D but rather to VS2008, libraries and the runtime.I previously built my project with GCC under Linux and MinGW under Windows (I use CMake for the makefiles generation). After a long period without doing anything, I recently got back to development and decided to use Visual Studio 2008 (express) for easier debugging.I had a lot of trouble making it work as it seems that it refuses to work if I build a debug version of my application and link it against to a release version of Ogre3D (something to do with the runtime I think). I finally got it working in release mode and everything seems to work fine.Now, if I try to build it in debug it doesn't seem to work. I build a debug version of Ogre3D and VS2008 produces all my binary files (one EXE and several DLLs). However when I run it, I get access violation when I call load on the texture manager on some PNG files. I had a hard time tracking where the problem occurred as it didn't want to give me a correct stack trace but I managed to find that I was loading a few PNG textures and that I crashed on two specific files.Here is the code I use to load the texture: try {   ogreTexture = textureManager.load(texture, "General", Ogre::TEX_TYPE_2D, -1, 1.0f); } catch(Ogre::Exception & /*e*/) { }And here is my error message:Unhandled exception at 0x0000000f in run.exe: 0x00000005: Access violationThe following call stack is given by Visual Studio:msvcp90d.dll!std::_Fgetc<char>(char & _Byte='', _iobuf * _File=0x00000000)  Line 36 + 0xa bytes   C++It seems quite strange to me that it crashes in debug but that in release everything works fine (and my textures are correctly loaded and shown). I noticed that I didn't have debug builds of FreeImage. Could it be related as I had troubles when mixing debug and release libraries ?Thank you for your help,SebastienPS: Note that I use Ogre 1.7.0   