"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 ♿

User avatar
retrodpc
Posts: 194
Joined: Tue Apr 21, 2015 12:05 am
Location: !wow
Contact:

Re: "File is not a vaild Famitracker Module"

Postby retrodpc » Thu Jun 28, 2018 4:14 am

Use a backup service
Don't copypasta Quotes

my sondclop

LordAndrew
Posts: 103
Joined: Wed Jul 01, 2015 7:47 pm

Re: "File is not a vaild Famitracker Module"

Postby LordAndrew » Thu Jun 28, 2018 4:15 am

Pino batch pino bach lets give it up for pino batch


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest