Clive Richmond
15-Mar-2015, 11:08 PM
Hi Vincent,
One difference we’ve recently come across in the graphic library is when you load an image from file it will hold the file open (CreateImageFromFile -> GdipLoadImageFromFile). This is compared to the ‘old way’ using cImageList32 which would load the file and immediately release it (AddBitmap -> LoadImage).
All the images we are working with are display only and, before you ask, can’t be complied as resources since end users are allowed to customise them to their requirements.
Is there a property or method we can use that once the file has loaded its file handle can be released?
One difference we’ve recently come across in the graphic library is when you load an image from file it will hold the file open (CreateImageFromFile -> GdipLoadImageFromFile). This is compared to the ‘old way’ using cImageList32 which would load the file and immediately release it (AddBitmap -> LoadImage).
All the images we are working with are display only and, before you ask, can’t be complied as resources since end users are allowed to customise them to their requirements.
Is there a property or method we can use that once the file has loaded its file handle can be released?