View Single Post
Old 03-25-2017, 01:55 PM   #65
ceanganb
Human being with feelings
 
Join Date: May 2009
Location: Brazil
Posts: 323
Default

Hi, Xenakios. I have one issue that I really don't know where to research the solution. I'm using your main.cpp code, replacing window names with something meaningful to me. SO I have:

void create_action1_Window(action_entry& ae)
{
(...)
g_action1_window = makeWindow("Action 1 Window", new MainComponent, 600, 400, true, Colours::slategrey);
g_action1_window->m_assoc_action = &ae;
(...)
}

I create a class ´MainComponent´. Now for the strange part, MainComponent derives from Timer. I override timerCallback()and define.

void MainComponent::timerCallback()
{
telogger.setText("something", sendNotification);
};

telogger is a Label. Now the timerCallback is only called when I compile a ´Debug´. If I compile a ´Release´, timerCallback is never called.

do you have any idea why? (Visual Studio 2015 and 2017)
__________________
Ceanganb
ceanganb is offline   Reply With Quote