Author Topic: Crash if clicking inside "Build messages" panel  (Read 3316 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Crash if clicking inside "Build messages" panel
« on: February 14, 2006, 02:35:35 pm »
I encounter a reproducable C::B crash if I do the following (the first step may be obsolete):
1.) Open a workspace (with a few projects).
2.) Open another project that will NOT (!) compile due to errors
3.) Try to compile this project, wait until all errors appear in the "Build message" panel
4.) Close this project -> notice the error list in the "Build message" panel is still there
5.) Click on any error message in the "Build message" panel -> Result: crash.
I've attached the C::B report file. Unfortunately it doesn't resolve the function name where the error actually occured.
-> BTW: Why is this? I used the C::B version from the "devel" directory.
OS: WinXP-SP2; C::B: SVN, revision 2002; wxWidgets 2.6.2, Unicode
I don't know since when this happens - I haven't tried before. I assume it has something to do with the fact that the project file the error belongs to cannot be found anymore (because the project has been closed).
With regards, Morten.

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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5496
Re: Crash if clicking inside "Build messages" panel
« Reply #1 on: February 14, 2006, 03:17:40 pm »
Your analysis is probably correct. It will try to get to a file of a 'unloaded' project, will get some NULL pointer, and crash boom bang.

I remember someone once suggested, if you close a project, also clean up the build log (if the build log was for that project, should check that!). When this would be done, hehe, no chance of getting to that NULL pointer. ;-)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Crash if clicking inside "Build messages" panel
« Reply #2 on: February 14, 2006, 03:23:58 pm »
Confirmed and fixed.
Thanks.
Be patient!
This bug will be fixed soon...