User forums > Help

cannot launch C::B

<< < (2/2)

pcoquill:
Hi Jens and Thomas, thanks a lot. I removed the  >:( default.conf, and CB started, as usually. But I've lost a lot of things...(included recent projects..). I'll launch a new install.

Thanks a lot. This was very helpfull.

PS : I notice that there is something interesting about default.conf in the FAQs

thomas:

--- Quote ---not something that could conceivably happen
--- End quote ---
That said, I just looked at FileManager::Save, which is the function overwriting that file (or every other file that is being saved in Code::Blocks).

That function was initially implemented as writing to a temporary file and then swapping the two and doing a delayed delete of the former original.

What I see now is... something different? If I read the current code correctly, a temp file is created, then the original is overwritten, and the temp file is deleted. Not sure what the rationale was behind that change, does anyone remember?

thomas:
The cause of your problem should be fixed with the next nightly build.

Instead of making a copy and overwriting the original (...?!) when saving, data is now being written to a temporary file, which is atomically moved over the original afterwards. This should prevent any such thing as "empty file" from happening.

Navigation

[0] Message Index

[*] Previous page

Go to full version