Strange cast error

Discussion in 'Beta Versions' started by agraham, Oct 11, 2008.

  1. agraham

    agraham Expert Licensed User

    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.

    Press the Fail button to get the error.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    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:
    Code:
    Image1.Image = Bitmap.Value
    Image1.Mode = cCenterImage
     
Loading...
  1. 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.
    Dismiss Notice