"File is not a vaild Famitracker Module"

Please post about bugs here.
Forum rules
When making a bug report, please try to be as specific as possible. Include information on how to reproduce the bug and an example file if possible.
If the application crashed, please include the generated memory dump file as well.
User avatar
PinoBatch
Posts: 50
Joined: Fri Oct 13, 2017 11:18 pm

Re: "File is not a vaild Famitracker Module"

Postby PinoBatch » Sat Feb 17, 2018 12:32 am

Mushroomdude123 wrote:The last time I opened it was just to listen to it. After that, I closed Famitracker then unplugged my flash drive.

The operating system may not have finished writing something, causing the file system to become inconsistent. To keep this from happening again, always unmount the flash drive using "safely remove" before unplugging it.

Now back to the topic of things FamiTracker can do to minimize the impact of surprise removals:

Linux has a system call called fsync() that ensures a file is completely written to the drive. The sequence is

Code: Select all

fflush(outfp);  // send end of data from application buffer to the OS
fsync(fileno(outfp));  // send data from the OS to disk
fclose(outfp);


Reportedly, fsync() on Windows is called _commit() and appears to wrap FlushFileBuffers(), and fileno() on Windows is called _fileno().
If MMC5/VRC6 is a crutch, then VRC7 is a wheelchair ♿


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests