Hello together,
I have strange problem with the function GetHImageData(). The function causes an unhandled exception after I have used the function SetPicture() to load a picture from file system. After I have called the function SetPicture() the picture is correctly displayed in the image control. Only if a try to access the memory afterwards then an unhandled exception is thrown. If I use the function GetFileName() then no exception is thrown!
Example code:
CImageControl &ctrlImage;
....
ctrlImage.SetPicture("test.jpg");
long lImageData = ctrlImage.GetHImageData();
Is this a bug or does anybody know how to avoid this problem?
I used ImageMan version 8.1.1.0
Thanks
Peter