Author Topic: Portable Code::Blocks  (Read 155501 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Portable Code::Blocks
« Reply #75 on: February 18, 2011, 01:41:31 pm »
I can't download this package... the link is broken??

It's there now. I had to implement a "last minute" change.
ok now, thanks!!!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #76 on: March 12, 2011, 03:02:14 am »
The latest version of the portable CB launcher is out:
http://CbLauncher.codecutter.org/CbLauncher_1.0.zip

v-1.0 March 2011
    * Tool path and fonts set up to only occur when Codeblocks is not already running.
    * Launcher stable, now tested under a variety of Windows platforms from XP onwards.

The launcher has now had heavy testing as part of the Code::Blocks EDU-Portable educational distribution at http://codeblocks.codecutter.org
There has been no sign of instability of this latest version.

Biplab if that is OK with you, I think now is a good time to commit the portable CB launcher to the contrib folder.

Offline rbon

  • Single posting newcomer
  • *
  • Posts: 6
Re: Portable Code::Blocks
« Reply #77 on: March 14, 2011, 09:01:03 am »
Quote
The launcher has now had heavy testing as part of the Code::Blocks EDU-Portable educational distribution at http://codeblocks.codecutter.org
There has been no sign of instability of this latest version.
Hi,
I have tried to download the archive "Codeblocks-EP.zip" - Version 1.1.1 from http://codeblocks.codecutter.org , but the download dont't work: appears the message "404 Not Found".
Do You can add this file to download?
Thanks


Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #78 on: March 14, 2011, 09:34:13 am »
Thanks for mentioning this rbon. The bad link is fixed now.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Portable Code::Blocks
« Reply #79 on: April 16, 2011, 07:18:48 am »
The latest version of the portable CB launcher is out:
http://CbLauncher.codecutter.org/CbLauncher_1.0.zip

v-1.0 March 2011
    * Tool path and fonts set up to only occur when Codeblocks is not already running.
    * Launcher stable, now tested under a variety of Windows platforms from XP onwards.

The launcher has now had heavy testing as part of the Code::Blocks EDU-Portable educational distribution at http://codeblocks.codecutter.org
There has been no sign of instability of this latest version.

Biplab if that is OK with you, I think now is a good time to commit the portable CB launcher to the contrib folder.
@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?

Codeblocks has a build-in mechanism to detect multi-instances. which is: menu->settings->environments->allow only one instance.

I always check this off, because I want to run several c::b instances. Any ideas?thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #80 on: April 16, 2011, 07:31:19 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?

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?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Portable Code::Blocks
« Reply #81 on: April 16, 2011, 09:53:21 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?

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?
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.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #82 on: April 16, 2011, 10:25:38 am »
Thanks for the report ollydbg.
I have tested and can confirm the bug. I am looking into it.
« Last Edit: April 16, 2011, 11:31:03 am by codeur »

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #83 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.
« Last Edit: April 16, 2011, 11:31:30 am by codeur »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Portable Code::Blocks
« Reply #84 on: April 16, 2011, 02:06:09 pm »
@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.
Ok, tested and it works fine! thanks!!!.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #85 on: April 17, 2011, 03:59:17 am »
Release  v1.0.1 of CbLauncher (complete with source and docs) now available for download at http://cblauncher.codecutter.org/CbLauncher_1.0.1.zip
- Fixes bug with multiple instances of CB reported by ollydbg.

Biplab or other developer, please commit to contrib when you have time.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Portable Code::Blocks
« Reply #86 on: April 17, 2011, 11:32:31 am »
Biplab or other developer, please commit to contrib when you have time.

Hi,

Please post another tarball with your Name, email id to assign copyrights. Basically I want to change the following lines from -
Quote
Copyright (C) 2009-2011 Biplab Kumar Modak
to-
Quote
Copyright (C) 2009-2011 codeur (codeur@codeur.com)
Copyright (C) 2009 Biplab Kumar Modak

I'll obfuscate your email id before committing.

I'll commit it to trunk over the next weekend. Thanks for your good work!
Be a part of the solution, not a part of the problem.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Portable Code::Blocks
« Reply #87 on: April 17, 2011, 11:44:05 am »
I'll commit it to trunk over the next weekend.
I guess it would fit best under src\tools\CBLauncher (or cb_launcher...).
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

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Portable Code::Blocks
« Reply #88 on: April 17, 2011, 11:47:10 am »
I'll commit it to trunk over the next weekend.
I guess it would fit best under src\tools\CBLauncher (or cb_launcher...).

Yes! You are right. It should go inside tools folder.
Be a part of the solution, not a part of the problem.

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Portable Code::Blocks
« Reply #89 on: April 17, 2011, 03:21:16 pm »
@Biplab
The v1.0.1 CbLauncher archive at codecutter.org has been updated with the changes to copyright you suggested.
I suggest however committing the same, except without the exe.
You can download that from http://CbLauncher.codecutter.org/CbLauncher_1.0.1_src.zip (334 kb)
Thanks.