views:

29

answers:

0

If I have the below code, everything will work - no exceptions.

_imgOutput.Bitmap = _irViewAreaBitmap;
ibxOutput.Image = _imgOutput;

If instead of the above I did this (with everything else the same):

pictureBox1.Image = _irViewAreaBitmap;

I get an "InvalidOperationException: Object currently ...".

I am confused because I would think both codes would try to access the _irViewAreaBitmap at the same time, one can use it successfully, while the other cannot!

Thanks!