@Huehnerschaender : What happens when you debug while trying to get the pixel value ? Maybe you can see what's wrong or where it crashes.