Author Topic: The 11 October 2007 build (4522) is out.  (Read 11209 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
The 11 October 2007 build (4522) is out.
« on: October 11, 2007, 10:54:47 pm »
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx284.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10.7z

The 11 October 2007 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20071011_rev4522_win32.7z
  - Linux :
   none

Resolved Fixed:

  • wxSmith:
    * Switched Child->GetVarName() to %o where it was possible in Codef function (it's much safer than quering child's variable using GetVarName())
    * Fixed memory leak in wxsItemEditor (thanx to valgrind ;) )
    * Changed names generated for internal variables used for code generation (they should be safer now)
  • Fix: when a file is auto-generating other files to be compiled, wait
    for it to finish compiling before proceeding to compile the generated
    files (so as to ensure the generated files are valid)
  • wxSmith: Fixed crash in wxsListBook

Regressions/Confirmed/Annoying/Common bugs:

  • toolbar-images-not-changing-state (is a wx problem/Win XP problem)


Offline Xaviou

  • Regular
  • ***
  • Posts: 300
    • X@v's wxStuff
Re: The 11 October 2007 build (4522) is out.
« Reply #1 on: October 12, 2007, 12:08:37 am »
Ubuntu 6.10 & 7.04 Amd64 tar.gz archive (containing '.deb' installers builds with wx284) can be found here.
The french wxWidgets site : http://www.wxdev.fr
My wxWidgets's stuff : https://wxstuff.xaviou.fr/

Offline pdsonic

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: The 11 October 2007 build (4522) is out.
« Reply #2 on: October 12, 2007, 01:55:17 am »
This lastest release seems to have broken something.
I just opened a .wxs file and the .cpp and .h files were changed. Not a problem.
However, the following code change seems odd:

Old code
Code: [Select]
TextCtrlPointA_X = new wxTextCtrl(PanelSideBar, ID_TEXTCTRL1, _("108.0"), wxDefaultPosition, wxSize(50,-1), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
FlexGridSizer5->Add(TextCtrlPointA_X, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);

New code
Code: [Select]
TextCtrlPointA_X = new wxTextCtrl(PanelSideBar, ID_TEXTCTRL1, _("108.0"), wxDefaultPosition, wxSize(50,-1), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
FlexGridSizer5->Add(0, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);

Notice that the Add now passes a '0' instead of the pointer 'TextCtrlPointA_X'? Is this correct??

Worse though is that now the code does not compile.

Code: [Select]
PanelMain->SetSizer(FlexGridSizer2);
was changed to
Code: [Select]
PanelMain->SetSizer(PanelSideBar);
and the compiler complains that SetSizer cannot accept a wxPanel, but it can accept a wxSizer.

I'm using WinXP SP2, wxwidgets 2.8.4, minGW.

I hope the above helps track down the problem.

In the mean time, I need to rollback to the previous nightly build.

Please let me know if you require more information. 

Thanks.

Offline luoyonggang

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: The 11 October 2007 build (4522) is out.
« Reply #3 on: October 12, 2007, 02:32:37 am »
I have something that I can't understand, everytime when I close codeblocks, it's notify me to save workspace file, I think it can be improve, like when i open codeblocks, we can open a workspace file at that time in default, and when i close it , it's save the workspace file which when open it in the start time.

Offline luoyonggang

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: The 11 October 2007 build (4522) is out.
« Reply #4 on: October 12, 2007, 03:35:58 am »
Platform Windows XP SP2
CodeBlocks version: svn 4522

BUG: When I Change the system time to year 2039. then i can't open codeblocks

Offline orefa

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: The 11 October 2007 build (4522) is out.
« Reply #5 on: October 12, 2007, 04:09:49 am »

I reported what I thought was a general problem in the previous version but it happens to be very code-specific, rather unusual, and not only on today's build but the last two as well (I didn't test older ones). Under Windows 2000 SP4, using gcc (either 3.4 or 4.2), compile a single file with this exact code:

Code: [Select]
struct Flags {
    int bits;
};

struct Base {
    struct BaseFlags : Flags {};
    static const BaseFlags DATA;
};

struct Derived : Base {
    struct Flags : BaseFlags {};
};

char dummy[Base::DATA.bits]; // Error: array bound is not an integer constant.

Make a cosmetic change and compile again. Repeat this four or five times and Code::Blocks will suddenly abort and close without warning. This does not happen with other code: make a meaningful change (comment out something for example) and Code::Blocks has no problem re-compiling until the cows come home. But this specific code plays some weird voodoo on CB. I don't know what to make of it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6661
    • My Best Post
Re: The 11 October 2007 build (4522) is out.
« Reply #6 on: October 12, 2007, 04:30:43 am »
@orefa

Try turning off code completion and see if it still does it.

Also, you might wish to post the codeblocks.RPT file found in the folder where C::B exe is.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline wwolf

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: The 11 October 2007 build (4522) is out.
« Reply #7 on: October 12, 2007, 05:05:24 am »
Quote
BUG: When I Change the system time to year 2039. then i can't open codeblocks

Are you programming a time machine?  :P

Offline orefa

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: The 11 October 2007 build (4522) is out.
« Reply #8 on: October 12, 2007, 06:15:02 am »
@stahta01:

I don't use code completion, it was off already. Here is the content of codeblocks.RPT after a crash:


EDIT: Scratch that, it was an old file from October 1st. I deleted it and ran the test again. CB crached at the fifth compilations and no codeblocks.RPT file was created.


EDIT 2 ---> My mistake on code completion: it was on and this plugin is indeed the culprit.
« Last Edit: October 13, 2007, 03:37:51 am by orefa »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6661
    • My Best Post
Re: The 11 October 2007 build (4522) is out.
« Reply #9 on: October 12, 2007, 06:33:57 am »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Marenz

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: The 11 October 2007 build (4522) is out.
« Reply #10 on: October 12, 2007, 12:55:26 pm »
Hey there,

I am using debian lenny, on amd64, i compiled codeblocks myself.
in this and previous revision, i had/have this problem:

I have a project (about 100 files), and evertime i do a change in any file, it keeps compiling the whole project new, as if i clicked the rebuild-all button :(

--Ano

Offline starofrainnight

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: The 11 October 2007 build (4522) is out.
« Reply #11 on: October 12, 2007, 03:02:44 pm »
Hey there,

I am using debian lenny, on amd64, i compiled codeblocks myself.
in this and previous revision, i had/have this problem:

I have a project (about 100 files), and evertime i do a change in any file, it keeps compiling the whole project new, as if i clicked the rebuild-all button :(

--Ano

I have had the same problem not long ago, i don't know if these information could help:

environment: winxp sp2, mingw, gcc4.2.1-dw

when the problem happen, i try to recompile codeblocks with "no optimize release" mode, install it. Then clear your project, delete *.gch, rebuild the project. then, it works.

I don't know what happening, just guess the problem belongs to gcc4 ~~ :P
« Last Edit: October 12, 2007, 03:21:18 pm by starofrainnight »

Offline surfinbird

  • Single posting newcomer
  • *
  • Posts: 8
Re: The 11 October 2007 build (4522) is out.
« Reply #12 on: October 12, 2007, 05:19:49 pm »
The AutoIndent and/or SmartIndent behaves not as expected when using a code style similar like this:

namespace x
....{
....void func( void )
........{
........if ( test )
............{
............// action
............}
........}
....}

I have checked the "Indent brackets" option in the Source formatter and would expect it to make the difference, but
the AutoIndent and/or SmartIndent generates this:

namespace x
{
....void func( void )
....{
........if ( test )
........{
............// action
........}
....}
}

Is this because the bracket rule doesn't influence a brace, and hence a brace indent option would be needed to make the auto indent working?


Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: The 11 October 2007 build (4522) is out.
« Reply #13 on: October 12, 2007, 05:42:45 pm »
Build for Ubuntu i386/amd64 can be found here