FileToBLOB error

glook

Member
Licensed User
Longtime User
Don't know if this has come up before, or if it's my fault or a bug?

This problem only happens on the desktop - in the IDE or compiled (for testing only). The same complied code works perfectly on the device - so it's just an issue for debugging.

Picture file is selected with OpenDialog, then loaded into an ImageList, before showing it in Image control.
If the user clicks a button the file is inserted into a database using FiletoBLOB, which gives an error saying the file is "already in use by another process".

The image is removed from the ImageList before the insert (I'm just using it to get width & height). I tried using LoadPicture instead and also re-assigning the Image control - no difference. If the ImageList/Image code is removed then it works fine.

Any ideas?
Geoff.
 

glook

Member
Licensed User
Longtime User
Thanks for pointing me at the right post, Erel - perfect!!

Using the ImageLib object even results in a nicer bit of code, as I can use it for the height and width instead of going via the imagelist :) (still learning!).

Geoff.
 
Top