Hi there
I'm trying to display image on a form with a display bitmap method to feed a window control on a form.
I've seen the example on several blogs and followed them coding thing like this:
display Bitmap picture()
{
container ret;
// prepare container data from a bimap image
return ret;
}
Then I placed a window control on the form and refered the datamethod to 'picture'.
However, every time the method is executed, AX freezes instead of showing the image. It makes no difference if I load the bitmap from a file or from the AOT node nor to return a null value - crashes every time.
Have the problem in AX 4.0, AX 2009 and AX 2012.
What's the trick to run this code?