What are the image creation flags?

BlitzMax Forums/BlitzMax Programming/What are the image creation flags?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.


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)