User forums > Using Code::Blocks
is it possible to use many CB instances ?
Elena:
So... this was the thread I mentioned. It was marked as SOLVED but to me it doesn't quite seems so...
http://forums.codeblocks.org/index.php?topic=21350.0
I am using CB 20.03 downloaded from here
https://www.codeblocks.org/downloads/binaries/
I am on windows 7 x64 ultimate but I tried and under windows 10 x64 the behaviour is the same.
If I launch another instance by double clicking codeblocks.exe or by right click in the task bar it actually opens another instance, but not if I double click on a .cbp
Miguel Gimenez:
The OP wants that double clicking on a .CBP file
Runs a new instance of the program. Currently you must
Open a new C::B and then
Load the project in the new instance using the menu.
Looks like a feature request, not really a bug.
oBFusCATed:
It is clearly a bug. There are already options to enable this behaviour!
And there are previous reports for brokenness of this feature.
Someone with windows should investigate what is going on.
@Elena: Can you show us the contents of your registry for "HKEY_CURRENT_USER\Software\Classes\CodeBlocks.exe"?
Elena:
Thanks Obfuscated, yeah to me it seems a bug without doubts because those two options (other than being apparently redundant imho) do not work. Also most times it is much more practical to open the .cbp rather than launching an empty CB locate the project and load it!
Anyway there is not any Codeblocks.exe key in my registry, there are many (.asm, .c,.cbp,...) but not the .exe... you really mean classes/codeblocks.exe ?
Miguel Gimenez:
This is the content of my "HKEY_CURRENT_USER\Software\Classes\CodeBlocks.cbp" entry:
--- Code: ---Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp]
@="project file"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\DefaultIcon]
@="C:\\Codeblocks\\src\\output31\\codeblocks.exe,1"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\Build]
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\Build\command]
@="\"C:\\Codeblocks\\src\\output31\\codeblocks.exe\" -na -nd -ns --batch-build-notify --build \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open\command]
@="\"C:\\Codeblocks\\src\\output31\\codeblocks.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open\ddeexec]
@="[Open(\"%1\")]"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open\ddeexec\application]
@="CODEBLOCKS"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open\ddeexec\ifexec]
@="[IfExec_Open(\"%1\")]"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\open\ddeexec\topic]
@="CodeBlocksDDEServer"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\Rebuild (clean)]
[HKEY_CURRENT_USER\SOFTWARE\Classes\CodeBlocks.cbp\shell\Rebuild (clean)\command]
@="\"C:\\Codeblocks\\src\\output31\\codeblocks.exe\" -na -nd -ns --batch-build-notify --rebuild \"%1\""
--- End code ---
If you remove the ddeexec folder all work as intended. IMHO this entry is redundant with the code, and in some tests it makes C::B freeze.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version