Author Topic: HELP: Can't put configuration files into C::B folder  (Read 2956 times)

Offline shajunxing

  • Multiple posting newcomer
  • *
  • Posts: 25
  • Sorry for my poor English ;)
HELP: Can't put configuration files into C::B folder
« on: November 15, 2007, 02:05:05 pm »
I downloaded and extracted the newest build 4630 to replace my old ones and found it can't be started. Finally I found the reason: all the configuration files (including cbKeyBinder10.ini codesnippets.xml cbKeyBinder10.ini.bak default.conf codesnippets.ini) can no longer be put into C::B folder but have to be kept in the location "Documents and Settings\UserName\Application Data\codeblocks". I used to keep them in the same folder of C::B to make my C::B portable. I wander whether and how I can do it now? Thanks. :?

Offline Howard

  • Single posting newcomer
  • *
  • Posts: 8
Re: HELP: Can't put configuration files into C::B folder
« Reply #1 on: November 16, 2007, 02:25:34 pm »
I think this has been reported here:
http://forums.codeblocks.org/index.php/topic,7282.msg55530.html#msg55530

kisoft's fix of changing line 131 in editorcolourset.cpp to the following does seem to fix the problem:
Code
Manager::Get()->GetLogManager()->Log(F(_("Found %d lexers"), count));

Crash trace:
Code
Program received signal SIGSEGV, Segmentation fault.
0x61991906 in LogManager::Log (this=0x10acab0, msg=@0x22f130, i=33, lv=info)
    at c:/Usr/Proj/cbBeta/trunk/src/include/logmanager.h:86
86                      void Log(const wxString& msg, int i = app_log, Logger::l
---Type <return> to continue, or q <return> to quit---
evel lv = Logger::info) { slot[i].log->Append(msg, lv); };
Current language:  auto; currently c++
(gdb) bt
#0  0x61991906 in LogManager::Log (this=0x10acab0, msg=@0x22f130, i=33,
    lv=info) at c:/Usr/Proj/cbBeta/trunk/src/include/logmanager.h:86
#1  0x6182eed7 in EditorColourSet::LoadAvailableSets (this=0x193f7b8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/editorcolourset.cpp:131
#2  0x6182deb1 in EditorColourSet::EditorColourSet (this=0x193f7b8,
    setName=@0x22f350)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/editorcolourset.cpp:49
#3  0x618499e5 in EditorManager::EditorManager (this=0x193ef00)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/editormanager.cpp:180
#4  0x619b38c3 in Mgr<EditorManager>::Get ()
    at c:/Usr/Proj/cbBeta/trunk/src/include/manager.h:185
#5  0x6188aab7 in Manager::GetEditorManager (this=0x10aca30)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/manager.cpp:317
#6  0x0042cfea in MainFrame::CreateMenubar (this=0x12e9308)
    at c:/Usr/Proj/cbBeta/trunk/src/src/main.cpp:874
#7  0x0042b33e in MainFrame::CreateIDE (this=0x12e9308)
    at c:/Usr/Proj/cbBeta/trunk/src/src/main.cpp:655
#8  0x00428528 in MainFrame::MainFrame (this=0x12e9308, parent=0x0)
    at c:/Usr/Proj/cbBeta/trunk/src/src/main.cpp:522
#9  0x00402213 in CodeBlocksApp::InitFrame (this=0x1079290)
    at c:/Usr/Proj/cbBeta/trunk/src/src/app.cpp:349
#10 0x00403a23 in CodeBlocksApp::OnInit (this=0x1079290)
    at c:/Usr/Proj/cbBeta/trunk/src/src/app.cpp:510
---Type <return> to continue, or q <return> to quit---
#11 0x00461ba4 in wxAppConsole::CallOnInit (this=0x1079290)
    at C:/Usr/Proj/wxWidgets284/include/wx/app.h:76
#12 0x1004e289 in wxEntryReal ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#13 0x100cfbec in wxEntry ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#14 0x0040179e in WinMain (hInstance=0x400000, hPrevInstance=0x0,
    lpCmdLine=0x251f12 "", nCmdShow=10)
    at c:/Usr/Proj/cbBeta/trunk/src/src/app.cpp:287
#15 0x0045e0ea in main () at c:/Usr/Proj/cbBeta/trunk/src/include/logger.h:21
(gdb) f 0
#0  0x61991906 in LogManager::Log (this=0x10acab0, msg=@0x22f130, i=33,
    lv=info) at c:/Usr/Proj/cbBeta/trunk/src/include/logmanager.h:86
86                      void Log(const wxString& msg, int i = app_log, Logger::l
evel lv = Logger::info) { slot[i].log->Append(msg, lv); };
(gdb)

Code
(gdb) f 1
#1  0x6182eed7 in EditorColourSet::LoadAvailableSets (this=0x193f7b8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/editorcolourset.cpp:131
131             Manager::Get()->GetLogManager()->Log(_("Found %d lexers"), count
);
(gdb)

http://forums.codeblocks.org/index.php/topic,7282.msg55530.html#msg55530
« Last Edit: November 16, 2007, 04:04:22 pm by Howard »