Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
About the Class browser crash....
rickg22:
Yiannis: It's just one bug... 11433.
The bug I reported is well, related to it.
My frustrations are about trying to fix it. Sorry if I got mad above... I spent too much time with that bug.
mandrav:
--- Quote from: rickg22 on July 01, 2007, 06:58:46 pm ---Yiannis: It's just one bug... 11433.
The bug I reported is well, related to it.
My frustrations are about trying to fix it. Sorry if I got mad above... I spent too much time with that bug.
--- End quote ---
OK, assign this bug to me. I will fix it, if it needs fixing.
Biplab:
Yiannis,
This bug can be reproduced very easily. Please follow the following steps.
1) Open a project with two or more cpp files and open each of the source files in editor.
2) Let the Code-Completion complete parsing and build the class-browser.
3) Switch to Symbols tab.
4) Select Current file's symbols.
5) Select an item from the tree. Please see the following picture where I've marked the selection in Red.
6) Now click and activate another editor page. C::B will crash.
Please Note that Step 5 is vital. If you don't select anything, C::B will NOT crash.
Best Regards,
Biplab
mandrav:
Thanks for the info Biplab.
rickg22:
Yiannis: I'm doing some experiments in my local copy with the class browser. I replaced the builder thread with a wxTimer-based state machine (it works on the main thread, 50 iterations every 5 milliseconds), and it works wonderful - the crash is completely gone! :) , but I haven't implemented the adding of topmost nodes this way, so building the tree is actually slower right now). I think I'll have it 100% optimized by the end of the week.
Mind opening an experimental branch for me to try out?
Thanks! :)
Oh, btw... about fixing the bug, here are some things you could try...
1) Change the thread from detached to joinable.
2) Don't set m_pParser, m_pTreeTop and m_pTreeBottom to 0 on finish.
3) Check for nulls on all auxiliary functions
4) Fix The m_pTreeTop and m_pTreeBottom confusion that I exposed on the top of this thread.
Good luck! 8)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version