I am using the CImageDecoder class to read a jpeg image into a bitmap.
The converting into the bitmap works fine.
CImageDecoder* idec = CImageDecoder::FileNewL(fs,_L("d:\\test.jpg"),_L8("image/jpeg"),CImageDecoder::EOptionAlwaysThread);
At the end of the code, I call the destructor-
However, the file still appears to be open. If I try to delete the file, I get a permission error saying that the file is open.
How can I close the file so that I can delete it?