User forums > Using Code::Blocks
Can I make C::B portable?
Squeller:
I've put c::b plus it's config files to a computer with no c::b on it.
1. Startup was fine.
2. Created a console application with the wizard.
3. Edited the source code.
After a couple of seconds an error message appeared:
--- Code: ---09:25:16: Failed to create a temporary file name (error 267: der Verzeichnisname ist ungültig.)
09:25:16: can't open user configuration file.
--- End code ---
Those are my files in the codeblocks folder:
--- Code: ---cb_console_runner.exe
cbKeyBinder04v110.ini
cbKeyBinder04v19.ini
cbKeyBinder10v111.ini
cbKeyBinder10v111.ini.bak
codeblocks.dll
codeblocks.exe
codesnippets.xml
default.conf
DragScroll.ini
exchndl.dll
mingwm10.dll
wxmsw26u_gcc_cb.dll
wxscintilla.dll
--- End code ---
EDIT: In order to make it portable, I probably have to narrow the default.conf down to only some necessary settings, including the compiler relative path...
Squeller:
I think this is not perfect. If I copy the c::B to another computer without the default.conf, it does create on in %appdata%. If I put that one into the cb folder, I get the previously mentioned error message. So I think a) c::b cannot live without the default.conf in %appdata%\c::b, and b) I think there is some invalid (absolute?) paths saved in the .conf file.
thomas:
I could imagine the source of this error is one of the contrib plugins, because I saw no such error when I tried with "plain vanilla" Code::Blocks and only the standard core plugins loaded.
Could you please try disabling or deleting one by one and see if the error ceases?
Squeller:
This is a hard task, because I haven't found an easy way to reproduce the error message. It does just appear sometimes.
OK, with dragscroll.dll turned off, the error message does appear more rarely now (with dragscroll.dll turned on, it happens e.g. any time after changing an editor setting).
Pecan:
I suspect this is caused by the merge timer in KeyBinder.
KeyBinder and Dragscroll know nothing about portable directories.
I cannot look at it until the last week of November.
Disable Dragscroll and KeyBinder to see if the problem goes away.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version