This program gives a strange cast error when run in the IDE but not when optimised compiled. The much bigger program that this was cut down from also ran fine when compiled.
Thanks agraham.
This bug will be fixed in the next version (one after 6.50).
It will happen when the assigned image is a reference to an external object.
The workaround is to reassign the image before changing the mode property:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.