View Single Post
Old 03-26-2017, 05:41 AM   #70
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by ceanganb View Post
It's interesting because JUCE Vst plugins present no problem with timers in releases.
Found the bug. The latest git revision has the fix. Thanks for spotting!

The problem was because these are creating the components with the timers before the Juce GUI init calls were made :

Code:
g_xy_wnd = makeWindow("XY Control", new XYContainer, 500, 520, true, Colours::darkgrey);
I don't really understand why there would be a difference how that line behaves in debug and release builds, but it is as if somehow in debug builds the makeWindow function gets to execute the Juce GUI initing before the function call makes the "new XYContainer" call...Or maybe in debug builds Juce does its own GUI initing automatically. Or something.

The reason why the plugin doesn't just simply init the JUCE GUI right in the plugin initialization function is to avoid unnecessary use of memory and CPU resources until they are actually needed.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote