FileToBLOB error

Discussion in 'Questions (Windows Mobile)' started by glook, Dec 2, 2007.

  1. glook

    glook Member Licensed 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?
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. glook

    glook Member Licensed 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!).

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice