Quote:

OK, tried this:
...
The result is an engine crash. (The bmaps are the same size - both are 744x600)

you must replace the p*4 with p*3 if you use 24 bit bitmaps. The code is tested and works fine. see here