News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

The 18 December 2010 build (6900) is out.

Started by killerbot, December 19, 2010, 09:54:30 AM

Previous topic - Next topic

mfmco2

Quote from: ollydbg on December 22, 2010, 06:12:08 AM
Quote from: mfmco2 on December 22, 2010, 06:02:41 AM
codeblocks.RPT

Please delete the file E:\CodeBlocks\share\codeblocks\plugins\EditorTweaks.dll

and start your C::B again. I think EditorTweaks plugin cause this crash.

Thank you very much!
I use SVN6454 version "EditorTweaks.dll", replace the current version.
Solve the problem.

windows xp sp3     chinese
Code::Blocks svn6900 + wmingwm10_gcc441 + wxWidgets 2.8.11.03(Compile the package【wxpack】)

danselmi

This patch should stop the crashes of EditorTweaks. (mainly the FindMenu(_("Edit")); has to be replaced by FindMenu(_("&Edit")); but the other checks won't hurt)
Index: EditorTweaks.cpp
===================================================================
--- EditorTweaks.cpp (revision 6904)
+++ EditorTweaks.cpp (working copy)
@@ -174,7 +174,7 @@

void EditorTweaks::OnRelease(bool /*appShutDown*/)
{
-    m_tweakmenu = 0;
+    m_tweakmenu = NULL;

//    EditorHooks::UnregisterHook(m_EditorHookId, true);
     EditorManager* em = Manager::Get()->GetEditorManager();
@@ -208,7 +208,7 @@
void EditorTweaks::BuildMenu(wxMenuBar* menuBar)
{
     Manager::Get()->GetLogManager()->DebugLog(_("Editor Tweaks plugin: Building menu"));
-    int i=menuBar->FindMenu(_("Edit"));
+    int i=menuBar->FindMenu(_("&Edit"));
     if(i==wxNOT_FOUND)
     {
         Manager::Get()->GetLogManager()->DebugLog(_("Editor Tweaks plugin: edit menu not found"));
@@ -298,6 +298,8 @@

void EditorTweaks::UpdateUI()
{
+    if ( !m_tweakmenu )
+        return;
     cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
     if(!ed || !ed->GetControl())
     {
@@ -414,7 +416,7 @@
     //TIP: for consistency, add a separator as the first item...

     //make sure we have an editor
-    if(type!=mtEditorManager)
+    if(type!=mtEditorManager || !m_tweakmenu)
         return;
     cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
     if(!ed || !ed->GetControl())
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

killerbot


Folco

Thanks for this nightly, thanks for A68k lexer intergration. :)
Kernel Extremist - PedroM power ©

mamtoug

somethings that I wish to add to codeblocks, I hope:
when I create a new project I really need to create a workspace file also (like MS visual studio), so it will be easy to add a second project.

Jenna

Quote from: mamtoug on December 23, 2010, 09:30:05 PM
somethings that I wish to add to codeblocks, I hope:
when I create a new project I really need to create a workspace file also (like MS visual studio), so it will be easy to add a second project.

Just open one or more projects and right-click on "Workspace" in the management pane or use the "File"-menu and chose "Save workspace as".