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

Offline mfmco2

  • 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: 184
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: [Select]
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: 4828
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: 337
    • 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. :)
Sorry for my english, I'm french
Kernel Extremist - PedroM power

Offline mamtoug

  • Newcomer
  • *
  • Posts: 1
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.
 

Online jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 6665
    • Jens unofficial debian-repository for the Code::Blocks - IDE
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".
Regards

Jens  Debian - nightlies (and release) : http://apt.jenslody.de/ Fedora [18 - 20]- and CentOS/RedHat [5, 6 & 7] - nightlies : http://rpm.jenslody.de/