I have a thread to check if the SD in the Wii inserted.
Is the SD card removed then the thread unmount the filesystem. Is the SD card inserted the thread mount the filesystem.
I have a problem when files are open und the filsystem is unmounted.
Unmount calls the function _FAT_partition_destructor. This function makes a syncToDisk for all open files but it marks the files NOT as unused (InUse=false).
When i try read or write after Unmount, the read-/write-function tries to access to the freed partition.
Also the opened directories are not marked as unused.