Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Portable Code::Blocks

<< < (17/19) > >>

codeur:

--- Quote from: ollydbg on April 16, 2011, 07:18:48 am ---@codeur
I found in the launcher.cpp, there is a function called "bool isCodeblocksRunning()" to avoid running two instances of the portable c::b. what's the purpose of this?

--- End quote ---

This function only detects if CB is already running. It is NOT used to prevent starting multiple instances of codeblocks. That last is controlled, as you say, by Codeblocks itself.
isCodeblocksRunning() is called elsewhere in the launcher to avoid multiple attempts at loading the same programmer fonts into the system.
Most users run CB in single-instance mode which is the default, so this area of the launcher is not as thoroughly tested as the rest.
Is this piece of code causing any trouble?

ollydbg:

--- Quote from: codeur on April 16, 2011, 07:31:19 am ---
--- Quote from: ollydbg on April 16, 2011, 07:18:48 am ---@codeur
I found in the launcher.cpp, there is a function called "bool isCodeblocksRunning()" to avoid running two instances of the portable c::b. what's the purpose of this?

--- End quote ---

This function only detects if CB is already running. It is NOT used to prevent starting multiple instances of codeblocks. That last is controlled, as you say, by Codeblocks itself.
isCodeblocksRunning() is called elsewhere in the launcher to avoid multiple attempts at loading the same programmer fonts into the system.
Most users run CB in single-instance mode which is the default, so this area of the launcher is not as thoroughly tested as the rest.
Is this piece of code causing any trouble?

--- End quote ---
I just do a flesh install (unzip the nightly build 7075 and cb portable launcher 1.0).

1, When first run the cb launcher, I uncheck both the "allow only one running instance" and "use an already running instance".Then I close the cb.
2, I run the cb launcher again. then I try to run another instance of cb launcher, but nothing happened. so, I guess the second c::b does not start correctly or  was abort.

If I use an old version of portable launcher, e.g. CbLauncher_0.1.5.zip, then I can start two instances of c::b.

So, I think there are some bugs in this version: CbLauncher_1.0.zip

Can someone test it?
thanks.

codeur:
Thanks for the report ollydbg.
I have tested and can confirm the bug. I am looking into it.

codeur:
@ollydbg
Please check if launcher v1.0.1 (exec only) from http://cblauncher.codecutter.org/CbLauncher1.0.1.zip (53 kB) fixes that issue for you.

ollydbg:

--- Quote from: codeur on April 16, 2011, 11:29:44 am ---@ollydbg
Please check if launcher v1.0.1 (exec only) from http://cblauncher.codecutter.org/CbLauncher1.0.1.zip (53 kB) fixes that issue for you.

--- End quote ---
Ok, tested and it works fine! thanks!!!.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version