Cannot deleted "large" files with ShellAPI
-
I have created an application that displays images and I want to add the possibility to delete files directly from the app. To have the file not deleted from the system directly but have it moved to the trash bin, I utilized the ShellAPI (SHFileOperation). So far, the implementation should be okay: when I try delete an "small" file (~200k) I am asked if I really want to delete this file and after confirmation it has moved to the trash bin. However, "large" files (~4MB) cannot be deleted but I get the Windows error message: "The file cannot be read from the file system" (something like that). I am pretty puzzled, since I have no clue why my implementation works for small files but not for large ones. Any ideas???
-
I have created an application that displays images and I want to add the possibility to delete files directly from the app. To have the file not deleted from the system directly but have it moved to the trash bin, I utilized the ShellAPI (SHFileOperation). So far, the implementation should be okay: when I try delete an "small" file (~200k) I am asked if I really want to delete this file and after confirmation it has moved to the trash bin. However, "large" files (~4MB) cannot be deleted but I get the Windows error message: "The file cannot be read from the file system" (something like that). I am pretty puzzled, since I have no clue why my implementation works for small files but not for large ones. Any ideas???
Is the recycle bin set to not accept files larger than a certain size?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Check out this cutie The apostle Paul, modernly speaking: Epistles of Paul Judah Himango