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

Got an error that not been able to track down - cbTReeView in RTTI table

(1/2) > >>

jimbo:
Hi, after a year working on other stuff, I am back on a project using c:b. I'm trying to get BlueHazzards cbSystemView plugin working on the latest version of C::B.

I'm getting the following error.


--- Code: ---../src/common/object.cpp(251): assert "classTable->Get(m_className) == NULL" failed in Register(): Class "cbTreeCtrl" already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() multiple times or linked some object file twice)?
--- End code ---

This used to work on an older C::B, has something changed which means the plugin code needs to be updated in some way? Or is my build broken in some way? My debugging has been fruitless so far.

TIA

Jimbo.

BlueHazzard:
Yes as far as i remember there needs to be some rework in the plugin... Hopefully i find some time this weekend...

jimbo:

--- Quote from: BlueHazzard on November 22, 2019, 04:14:59 pm ---Yes as far as i remember there needs to be some rework in the plugin... Hopefully i find some time this weekend...

--- End quote ---

Happy to collaborate on this, but rather inexperienced with C::B.  Did make some changes a year ago, including reformatting the code to C::B coding standards and shuffling code around with some renames of stuff as well. I could push those to your git repo as a PR?

edit: Have dumped most of my changes as a single PR to your github. Rather a mismatch of changes I am afraid. You may wish to ignore, or get what you have going then I can redo what I have done manually. It's mostly just formatting and tidying up some file names etc.

jimbo:

--- Quote from: BlueHazzard on November 22, 2019, 04:14:59 pm ---Yes as far as i remember there needs to be some rework in the plugin... Hopefully i find some time this weekend...

--- End quote ---

Any ideas on this specific issue? Seems to be related to a newer version of C::B, or perhaps a mismatch in libraries somewhere that I have not been able to track down. Once I get past this I hope I can get on with actual stuff!

BlueHazzard:
I have tested it this weekend. I was able to compile, but got a runtime error.
I will upload the fixed code to github this evening.
On the machine i used this weekend i probably have a bad compiler setup and for this the runtime errors. I will try again tomorrow with a fresh setup...

I also have updated my other plugin https://github.com/bluehazzard/cbMemoryView that also relays on the memory watch api. I will also upload the new code this evening...

[edit:] I got a different runtime assert as reported by you... Mine was something toolbar related...

Navigation

[0] Message Index

[#] Next page

Go to full version