I am not sure if this is a bug or a problem with my set-up:- Sometimes my program crashes on a "bitmap1.Dispose" command, but not every time. The error message is always the same - attached below. This small section of code had been working fine for some time, but I assumed my program was faulty. However, I could not find the problem. Then I discovered that the first compile after loading the IDE always produces an exe that works OK, but any re-compile after that, without re-starting the IDE, makes an exe that always has the error! I'm using optimized compile, version 6.05, no recent changes to libraries and believe ImageLib and other libs are the correct files on desktop and device. The error only happens on the device - .Net 2, WM5 and emulator for WM6. Un-optimized exe's do not have the error. Any ideas? (By the way, despite this little problem I think the optimized compiler is fantastic.) Geoff.