The project compile fine with the new Ogre, but I get an error during execution :
Unhandled exception at 0x6C69AA00 (nvd3dum.dll) in myProject.exe: 0xC0000005: Access violation reading location 0xAC49652D.
My video processing
Code: Select all
Util::Bitmap* dest = mVideoTextureVector[index]->lock();
/*
... Skipped code, basically I blitz my texture, i put this part of code in comments, the error is still trowing
Util::BitmapProcessing::blit24BitsTo32BitsWithTransparency(mWidth, mHeight, sourceBaseAdress, sourceBaseAdressStep, destBaseAdress, destBaseAdressStep, mTransparencyColor, mHorizontalFlip);
*/
mVideoTextureVector[index]->unlock();
Code: Select all
Util::Bitmap* OgreTexture::lock (void)
{
mPixelBuffer = mTexture->getBuffer();
mPixelBuffer->lock(Ogre::HardwareBuffer::HBL_DISCARD);
const Ogre::PixelBox& pixelBox = mPixelBuffer->getCurrentLock();
if (mBitmap)
{
delete mBitmap;
mBitmap = NULL;
}
if (pixelBox.data)
{
mBitmap = new Util::Bitmap(reinterpret_cast<char *>(pixelBox.data), pixelBox.getWidth(), pixelBox.getHeight(),
(pixelBox.getWidth() * 4) + (static_cast<int>(pixelBox.getRowSkip()) * 4), 32);
}
return mBitmap;
}