Author Topic: Some annoying symbols-browser issues  (Read 28485 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Some annoying symbols-browser issues
« Reply #15 on: August 03, 2011, 03:43:06 am »
The attached patch seems to fix the event-handler issue and should not break anything other.
Can you please test it ?
It's works. But why? It's wxWidgets's bug?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Some annoying symbols-browser issues
« Reply #16 on: August 03, 2011, 05:39:56 am »
The attached patch seems to fix the event-handler issue and should not break anything other.
Can you please test it ?
It's works. But why? It's wxWidgets's bug?
I have the same question hare, the patches seems only convert the event-handler map from static macro definition to dynamically linked style, are there much difference on propagate messages? I guess it is a bug in Linux version of wxWidgets. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Some annoying symbols-browser issues
« Reply #17 on: August 03, 2011, 07:04:01 am »
It's works. But why? It's wxWidgets's bug?

I have the same question hare, the patches seems only convert the event-handler map from static macro definition to dynamically linked style, are there much difference on propagate messages?

It's not a bug, but a matter of ordering the event handling. In fact, the wx guys really encourage to use this method (see here: http://wxwidgets.blogspot.com/2007/01/in-praise-of-connect.html). I am using it all the time in my personal projects and once you get used to it it's really quite handy. Especially the ability to switch the event propagation temporarily off for certain reasons is nice.


So I think we can safely apply Jens' patch.
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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Some annoying symbols-browser issues
« Reply #18 on: August 03, 2011, 07:13:57 am »
It's works. But why? It's wxWidgets's bug?

I have the same question hare, the patches seems only convert the event-handler map from static macro definition to dynamically linked style, are there much difference on propagate messages?

It's not a bug, but a matter of ordering the event handling. In fact, the wx guys really encourage to use this method (see here: http://wxwidgets.blogspot.com/2007/01/in-praise-of-connect.html). I am using it all the time in my personal projects and once you get used to it it's really quite handy. Especially the ability to switch the event propagation temporarily off for certain reasons is nice.


So I think we can safely apply Jens' patch.
Jens' patch indeed solve the problem, but I still believe its a bug in wx, because there is no reason that the event_table way does not work. (although wx guys use/suggest dynamical way, but the static event_table way should always work), and looking at c::b's source, there are many event_table usages. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Some annoying symbols-browser issues
« Reply #19 on: August 03, 2011, 07:18:03 am »
Jens' patch indeed solve the problem, but I still believe its a bug in wx, because there is no reason that the event_table way does not work. (although wx guys use/suggest dynamical way, but the static event_table way should always work), and looking at c::b's source, there are many event_table usages. :D
I have the same point!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Some annoying symbols-browser issues
« Reply #20 on: August 03, 2011, 07:20:13 am »
I have the same point!
That might be true, but in fact you are doing 2 different things here. But I guess the wx guys can explain better - why not asking in the wx forums?
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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Some annoying symbols-browser issues
« Reply #21 on: August 03, 2011, 07:24:36 am »
I have the same point!
That might be true, but in fact you are doing 2 different things here. But I guess the wx guys can explain better - why not asking in the wx forums?
I think I can't. Because my poor English. I can't explain this clear.
 :D

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Some annoying symbols-browser issues
« Reply #22 on: August 03, 2011, 07:26:17 am »
I think I can't. Because my poor English. I can't explain this clear.
And I just realised that for some obscure reason the wx shadownet forum seems gone?! Have they moved to a new place and I didn't get it? :shock:

EDIT: And what the hell is this:
http://forum.wxwidgets.org/
???
« Last Edit: August 03, 2011, 07:32:55 am by MortenMacFly »
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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Some annoying symbols-browser issues
« Reply #23 on: August 03, 2011, 07:41:34 am »
I think I can't. Because my poor English. I can't explain this clear.
And I just realised that for some obscure reason the wx shadownet forum seems gone?! Have they moved to a new place and I didn't get it? :shock:

EDIT: And what the hell is this:
http://forum.wxwidgets.org/
???
The movement takes several days ago. :D, and the old domain name was expired, at that time, the wx forum has encountered a crash and recovery. (I'm subscribed to the wx-maillist under my thunderbird).
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: Some annoying symbols-browser issues
« Reply #24 on: August 03, 2011, 07:51:47 am »
I think I can't. Because my poor English. I can't explain this clear.
And I just realised that for some obscure reason the wx shadownet forum seems gone?! Have they moved to a new place and I didn't get it? :shock:

EDIT: And what the hell is this:
http://forum.wxwidgets.org/
???
that's the wrong link. The right one is http://forums.wxwidgets.org.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Some annoying symbols-browser issues
« Reply #25 on: August 03, 2011, 08:08:48 am »
that's the wrong link. The right one is http://forums.wxwidgets.org.
Darn! The missing "s" leads to this strange page...?! WTF?! :?
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