Home » U++ Library support » U++ Callbacks and Timers » THISBACK and inheritance
Re: THISBACK and inheritance [message #48484 is a reply to message #48483] |
Fri, 07 July 2017 08:40 |
rafiwui
Messages: 105 Registered: June 2017 Location: Stuttgart, Germany
|
Experienced Member |
|
|
Oblivion wrote on Thu, 06 July 2017 23:17Hello Daniel,
It is because those button events aren't called immediately. They are called when there is some user action (They are called WHEN there is action (click/push, etc.).
Had they been called immediately you would have the same undefined behaviour.
On the other hand, MenuBar::Set() method calls the provided callback, and sets the menubar immediately, which leads to crash.
Ah okay. Thanks for your answers.
Oblivion wrote on Thu, 06 July 2017 23:17Hello Daniel,
Ah, that's my fault. Nevermind. (For some reason, the below macros reminded me of U++ internal macros used in the TheIDE layout editor.)
Oh yeah they are pretty similar
Greetings
Daniel
|
|
|
Goto Forum:
Current Time: Wed Jun 05 22:06:21 CEST 2024
Total time taken to generate the page: 0.01731 seconds
|