Author Topic: The 18 December 2010 build (6900) is out.  (Read 35707 times)

Offline mfmco2

  • Single posting newcomer
  • *
  • Posts: 5
Re: The 18 December 2010 build (6900) is out.
« Reply #15 on: December 22, 2010, 07:44:36 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】)

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: The 18 December 2010 build (6900) is out.
« Reply #16 on: December 22, 2010, 04:43:49 pm »
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)
Code
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())

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5516
Re: The 18 December 2010 build (6900) is out.
« Reply #17 on: December 22, 2010, 05:45:03 pm »
applied the suggestions

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 18 December 2010 build (6900) is out.
« Reply #18 on: December 23, 2010, 04:10:40 pm »
Thanks for this nightly, thanks for A68k lexer intergration. :)
Kernel Extremist - PedroM power ©

mamtoug

  • Guest
Re: The 18 December 2010 build (6900) is out.
« Reply #19 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.
 

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: The 18 December 2010 build (6900) is out.
« Reply #20 on: December 23, 2010, 09:40:13 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".