"TheEndless" wrote:
Interesting.. you're calling GetBitmap() three times in that code, and it doesn't blow up until the last one. I wouldn't expect it to ...
In practice it was getting called only 2x - because of the short-circuiting of the OR - so it was bombing on the 2nd call to getBitmap(). It would be disconcerting if it was err-ing on the 3rd call but now is just a regular bug, phew 8-)
Also, i don't think there is type()="bitmap" ever, is there? I trust when getBitmap() <> invalid, it's always roBitmap.