the problem is i gues that you paint on a pixel that is lower then0 or higher then amount of pixel of the bmap that wil result into a crash


"empty"