T
Tom Scales
I am having a problem with an application I am writing in vb.net 2003.
I display an image (JPG) on the screen using a Picturebox, loading it with
image.fromfile.
The user can select a key to delete the image.
If I try to delete it, it throws an error that the file is in use.
I tried the image.dispose() method, which allows me to copy the file and
MOST of the time delete the file, but not always. Sometimes it still throws
the in use error.
Any thoughts? Do I need to force garbage collection?
Thanks,
Tom
I display an image (JPG) on the screen using a Picturebox, loading it with
image.fromfile.
The user can select a key to delete the image.
If I try to delete it, it throws an error that the file is in use.
I tried the image.dispose() method, which allows me to copy the file and
MOST of the time delete the file, but not always. Sometimes it still throws
the in use error.
Any thoughts? Do I need to force garbage collection?
Thanks,
Tom