User forums > Help

Code::Blocks Version 20.03 Crashes When Run On Linux?

<< < (4/5) > >>

JeZxLee:

--- Quote from: oBFusCATed on April 29, 2020, 08:50:15 pm ---Also what happens if you try this patch:

--- Code: ---diff --git a/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp b/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
index 84c14fdf4..ee20512f4 100644
--- a/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
+++ b/src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
@@ -101,8 +101,8 @@ END_EVENT_TABLE()

 // constructor
 DoxyBlocks::DoxyBlocks() :
-    m_pToolbar(0l),
-    m_DoxyBlocksLog(0l),
+    m_pToolbar(nullptr),
+    m_DoxyBlocksLog(nullptr),
     m_LogPageIndex(0),
     m_bAutoVersioning(false)
 {
@@ -234,8 +234,10 @@ void DoxyBlocks::OnEditorClose(CodeBlocksEvent& WXUNUSED(event))
  */
 void DoxyBlocks::OnUpdateUI(wxUpdateUIEvent& WXUNUSED(event))
 {
-    if(Manager::Get()->GetProjectManager()->GetProjects()->GetCount() == 0){
-        m_pToolbar->Enable(false);
+    if (Manager::Get()->GetProjectManager()->GetProjects()->GetCount() == 0)
+    {
+        if (m_pToolbar)
+            m_pToolbar->Enable(false);
         wxMenuBar *menuBar =  Manager::Get()->GetAppFrame()->GetMenuBar();
         menuBar->FindItem(ID_MENU_DOXYWIZARD)->Enable(false);
         menuBar->FindItem(ID_MENU_EXTRACTPROJECT)->Enable(false);
@@ -264,14 +266,15 @@ void DoxyBlocks::OnRelease(bool /*appShutDown*/)
             Manager::Get()->ProcessEvent(evt);
         }
     }
-    m_DoxyBlocksLog = 0;
+    m_DoxyBlocksLog = nullptr;
 }

-cbConfigurationPanel *DoxyBlocks::GetConfigurationPanel(wxWindow *parent)
+cbConfigurationPanel* DoxyBlocks::GetConfigurationPanel(wxWindow *parent)
 {
     //create and display the configuration dialog for your plugin
-    if(!IsAttached()){
-        return 0;
+    if (!IsAttached())
+    {
+        return nullptr;
     }

     // Get the version string before instantiating the panel so that it is recorded before
@@ -346,7 +349,7 @@ cbConfigurationPanel *DoxyBlocks::GetConfigurationPanel(wxWindow *parent)

 cbConfigurationPanel* DoxyBlocks::GetProjectConfigurationPanel(wxWindow* /*parent*/, cbProject* /*project*/)
 {
-    return 0;
+    return nullptr;
 }

 void DoxyBlocks::OnConfigure(wxCommandEvent & WXUNUSED(event))

--- End code ---

--- End quote ---
Hi,

I can try the patch if you show me how to use it in terminal

Jesse

oBFusCATed:
You have to build from source or if you're using a package you'll have to rebuild the package and modify the spec file to include the patch.

JeZxLee:
Don't know how to do that unfortunately...

My Linux is a rolling release distro.
Will Code::Blocks be updated soon?

Thanks!

Jesse

JeZxLee:

--- Quote from: oBFusCATed on April 29, 2020, 08:52:26 pm ---If you don't know how to build and still want to get past this problem, you can find the libDoxyBlocks.so and rename it to something else or delete it.

On my system it is in

--- Code: ---/usr/lib64/codeblocks/plugins/libDoxyBlocks.so

--- End code ---

--- End quote ---
Hi,

Above actually works.

What is "DoxyBlocks"?
Just wondering if I need that or not.

Thanks!

Jesse

stahta01:
http://wiki.codeblocks.org/index.php/DoxyBlocks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version