I always get this error too when I try to access the picture variable before it has a picture in it. I thought you should be able to use IsEmpty or IsNull or something to find if it has been initialised, but it never seems to work.