Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Issue with code completion

(1/2) > >>

Russell:
Hi, when I open a file associated with codeblocks, like a c/c++ file from windows explorer, it loads fine in codeblocks, but the explorer window which I opened it from is deadlocked.

I found if I disabled the code completion plugin, it doesn't happen and both codeblocks and the windows explorer directory is fine.

Any ideas? code completion is sorta needed ;)

MortenMacFly:

--- Quote from: Russell on February 04, 2008, 11:48:00 pm ---Any ideas?

--- End quote ---
We are aware of that issue. Unfortunately there is not an easy solution atm (at least for me it seems so). But: The Explorer Windows is not really deadlocked, it will return responsing after a minute or so... :lol:

Ceniza:
I remember solving that problem a long time ago, and it was indeed something in the CodeCompletion plugin. I found the right place to work on by disabling sections of code called when the plugin was initialized. It took some time, but I found a work around. Now, I don't remember what was that section that had to be edited. However, something tells me it's one where I added a variable, so that section of code wouldn't be called on plugin initialization on Windows. Could anyone please check?

MortenMacFly:

--- Quote from: Ceniza on February 05, 2008, 09:23:35 am ---Could anyone please check?

--- End quote ---
I found that section (classbrowser.cpp, method ClassBrowser::BuildTree()). But I don't get what you are trying to do there. In addition the "workaround" is active so it should work, right? But it doesn't...?!

Ceniza:
IIRC, it was to avoid a call to a function on initialization only. At the time I added that workaround it worked fine. I'm afraid the same trial and error technique would have to be used again to see where it's making DDE hang.

Navigation

[0] Message Index

[#] Next page

Go to full version