Process Not Releasing
Posted on 2004-08-27
My coworker has an application that he is working on that views dicom images using the ezdicom activex tool. He added functionality to print the images into the application. The only way he could figure to go about it was to use a function in the activex tool that writes the image to a file and then say graphics.drawimage from that file. It works fine and prints, but the problem is that in order to become efficient, after printing the image he tries to delete the file that was generated from the image and gets an error saying that the file could not be accessed because it was in use by another process. For the life of us, we cannot figure out what is causing this error, because if we change the image and click print again, causing it to write a new image to the same file, it works with not problem. It is just when it tries to delete the file. Any ideas what could be causing this????????????