News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

sdk/editorcolour.cpp patch (rev.4632). Crash on startup.

Started by kisoft, November 15, 2007, 10:24:50 AM

Previous topic - Next topic

kisoft

I submit patch to BerliOS. SVN rev.4032 crash on startup without this patch.
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2243&group_id=5358
Piece of code from this patch for explains:

-        Manager::Get()->GetLogManager()->Log(_("Found %d lexers"), count);
+        Manager::Get()->GetLogManager()->Log(F(_("Found %d lexers"), count));

MinGW 3.4.5
wxWidgets 2.8.6
Now C::B worked succesfully.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

Jenna

svn4632 works fine for me on Linux and W2k in kvm virtual-machine.
The only difference on W2k) is that I compiled codeblocks (and wxWidgets) with MingW gcc4.2.

kisoft

svn 4632. I does edit topic subject.
Last revision when I used before 4632 - 4603. All versions after 4603 have crash on startup.

OS      : Microsoft Windows XP Professional
Version: 5.1.2600 Service Pack 2 Build 2600

MinGW 3.4.5, wxWindows 2.8.6

Original line when I patched is:

        Manager::Get()->GetLogManager()->Log(_("Found %d lexers"), count);

My new line is:

        Manager::Get()->GetLogManager()->Log(F(_("Found %d lexers"), count));


Anybody can see method void EditorColourSet::LoadAvailableSets() in sdk/editorcolourset.cpp
and will found then line 131 has difference with line 147. I have no comments more.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

Jenna

I think it did not crash for me, because it happens when scanning for user-specific lexers, but I don't have any.

kisoft

Quote from: jens on November 15, 2007, 03:17:37 PM
I think it did not crash for me, because it happens when scanning for user-specific lexers, but I don't have any.
My default.conf resides in same directory with codeblocks.exe. I move configs to this path not long ago. Your assumption is cogent argument.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]