G
Guest
I am trying to use Shell32 objects to move files to the recycling bin upon user command. The problem is that I have the resource open prior to the user making the decision to delete the resource (image files). I close them and call Dispose on them, but I get an 0x402 response and the image is not recycled. I know it has something to do with using the resource because I can delete other resources that aren't in use.
I have also tried invoking garbage collection prior to executing the Shell32 command and I still get the same response.
Any ideas on how to detach from the resource? Also, what does 0x402 mean exactly?
Thanks,
I have also tried invoking garbage collection prior to executing the Shell32 command and I still get the same response.
Any ideas on how to detach from the resource? Also, what does 0x402 mean exactly?
Thanks,