This is what I do.
If I just draw the pixmap all is fine, but if I load to image like below, the MemCopy crashes without any explanation. (Except the generic access violation)
It seems like my pixmap becomes invalid some how.
Note that this memcopy is performed 60 times/sec so things are happening pretty fast.
I might just switch to OpenGL textures directly as this works without problems.
Unfortunately I can't make a small test case ATM.
If I just draw the pixmap all is fine, but if I load to image like below, the MemCopy crashes without any explanation. (Except the generic access violation)
It seems like my pixmap becomes invalid some how.
Note that this memcopy is performed 60 times/sec so things are happening pretty fast.
I might just switch to OpenGL textures directly as this works without problems.
Unfortunately I can't make a small test case ATM.
MemCopy(PixmapPixelPtr(tempPixMap),Frame,width*Height*3) ' Gotta flip it. Damn GDI tempPixMap = YFlipPixmap(tempPixMap) ' Draw it tempImage = LoadImage(tempPixMap, DYNAMICIMAGE) DrawImage(tempImage, x, y)