Author Topic: [BUG] Crash while closing tabs in "Message Pane"  (Read 5302 times)

Offline Saswat2603

  • Single posting newcomer
  • *
  • Posts: 9
[BUG] Crash while closing tabs in "Message Pane"
« on: April 27, 2010, 06:36:02 am »
Hi everyone !!
I think I just found a bug in C::B. Not sure if it is already reported .. but I had searched before posting.

THE BUG
C::B crashes without any notification when trying to close tabs in the "Message Pane"

ENVIRONMENT
Windows XP SP3
Intel Celeron 2.6 GHz Processor
RAM : 512 MB
C::B Nightly : 6181

STEPS TO REPRODUCE THE BUG(Works for me)
1. First close the last ("Thread Search") tab in the Massage Pane.
2. Try to close any other tab after that.
C::B will crash while you hover mouse over the close button of any tab.
Code: [Select]
printf("Saswat - born 2 %X\n",49374);
 [:)] [;)]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: [BUG] Crash while closing tabs in "Message Pane"
« Reply #1 on: April 27, 2010, 08:09:35 am »
Most likely related to this bug: http://forums.codeblocks.org/index.php/topic,12385.0.html.
And will be fixed before next release.

As workaround don't use "Show close on all tabs" or do not close the tabs in the log pane (use toggle from context-menu instead).

@MortenMacFly:
did you find the time to test my patch in the thread above ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: [BUG] Crash while closing tabs in "Message Pane"
« Reply #2 on: April 28, 2010, 06:56:07 am »
did you find the time to test my patch in the thread above ?
Yes, so far I don't see that it broke anything. However, I am not using C::B very often at the moment. But for the Management pane and Logger pane it seems to work now as expected. I think that was the major concern, right?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: [BUG] Crash while closing tabs in "Message Pane"
« Reply #3 on: April 28, 2010, 09:28:01 am »
did you find the time to test my patch in the thread above ?
Yes, so far I don't see that it broke anything. However, I am not using C::B very often at the moment. But for the Management pane and Logger pane it seems to work now as expected. I think that was the major concern, right?!
Yes !
It does not change anything for the editors,
prevents the management tabs from being closed, because C::B needs them and they can not be reopened,
toggles the management tabs instead of just closing them, so they can be reopened via context menu or if they are needed by the logger (like "Build log" for example).

I will commit at the weekend, I will not be at home except for the weekends the next weeks and I do not always have network connections like now.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: [BUG] Crash while closing tabs in "Message Pane"
« Reply #4 on: May 01, 2010, 10:46:35 am »
Should be fixed in trunk (svn r6206).