Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Kaijun on January 30, 2014, 02:47:25 pm

Title: C::B loses editor setting when it crashes
Post by: Kaijun on January 30, 2014, 02:47:25 pm
Hi,

After my C::B (12.11) crashes, What I set in editor (like color, font, and so on) will be lost.

Kai
Title: Re: C::B loses editor setting when it crashes
Post by: Jenna on January 30, 2014, 02:49:55 pm
All settings you change will only be saved when C::B gets closed.
Title: Re: C::B loses editor setting when it crashes
Post by: Kaijun on January 30, 2014, 03:58:05 pm
I have saved my setting, but once it crashes, my setting is reset to default.
Title: Re: C::B loses editor setting when it crashes
Post by: Jenna on January 30, 2014, 04:00:01 pm
I have saved my setting
What exact did you to save your settings ?
Title: Re: C::B loses editor setting when it crashes
Post by: Kaijun on January 30, 2014, 04:50:10 pm
e.g. I changed font in General settings, something in Syntax highlighting.
Title: Re: C::B loses editor setting when it crashes
Post by: Jenna on January 30, 2014, 04:55:10 pm
All settings you change will only be saved when C::B gets closed.
That's meant exactly as I wrote it.

The settings are only changed in memory until C::B will be closed (cleanly). In this case they will be written to disk.
That's the cause why they are lost, if C::B crashes after a change, but before it gets closed.
Title: Re: C::B loses editor setting when it crashes
Post by: Kaijun on January 30, 2014, 05:15:19 pm
When I opened the project again, I should get previous settings I saved before last exit. Question is I went back to default for a new installation.
Title: Re: C::B loses editor setting when it crashes
Post by: MortenMacFly on January 30, 2014, 05:31:46 pm
The settings are only changed in memory until C::B will be closed (cleanly). In this case they will be written to disk.
...or if you choose "Save everything" from the "File" menu. This also triggers saving the settings, btw...