Author Topic: C::B loses editor setting when it crashes  (Read 5884 times)

Offline Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
C::B loses editor setting when it crashes
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C::B loses editor setting when it crashes
« Reply #1 on: January 30, 2014, 02:49:55 pm »
All settings you change will only be saved when C::B gets closed.

Offline Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: C::B loses editor setting when it crashes
« Reply #2 on: January 30, 2014, 03:58:05 pm »
I have saved my setting, but once it crashes, my setting is reset to default.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C::B loses editor setting when it crashes
« Reply #3 on: January 30, 2014, 04:00:01 pm »
I have saved my setting
What exact did you to save your settings ?

Offline Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: C::B loses editor setting when it crashes
« Reply #4 on: January 30, 2014, 04:50:10 pm »
e.g. I changed font in General settings, something in Syntax highlighting.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C::B loses editor setting when it crashes
« Reply #5 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.

Offline Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: C::B loses editor setting when it crashes
« Reply #6 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B loses editor setting when it crashes
« Reply #7 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ