News:

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

Main Menu

Crash when the EditorTweaks plugins is unloaded

Started by oBFusCATed, August 22, 2010, 12:44:10 AM

Previous topic - Next topic

oBFusCATed

Hello,

My CB started to crash when I've disabled the EditorTweaks plugins.
The crash happens when I right click in the editor.

And here is the fix:


Index: src/sdk/pluginmanager.cpp
===================================================================
--- src/sdk/pluginmanager.cpp   (revision 6508)
+++ src/sdk/pluginmanager.cpp   (working copy)
@@ -1399,7 +1399,7 @@
     for (unsigned int i = 0; i < m_Plugins.GetCount(); ++i)
     {
         cbPlugin* plug = m_Plugins[i]->plugin;
-        if (plug)
+        if (plug && plug->IsAttached())
         {
             try
             {


Tested on trunk @ head, gentoo linux 64bit
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]