I was done with the gui for the plug I’m working on and decided to test it with a few other hosts (other than toby’s minihost) and I encountered a few problems.
So, I unzipped the JAP file for a fresh copy and compiled the demo, but it exhibited the same behaviours. Behaviours that I shall now describe.
In Toby’s minihost, everything is fine.
In Tracktion (1.x) GUI does not display, but I could not coax out any errors messages.
In VSTHost (Opensource thingy) Plug in loads and appears to work, but it doesn’t try to show the gui before asked…at which point I get an application crash and an error message about unexpected termination from the Visual C++ Runtime.
In Christian Budde’s VST Analyser, which also does not load the gui untill asked, I sometimes get a crash when closing the gui window. Same error as above.
In SVH (FXpansion mini host thing) its the same deal as with VSTHost. Plug loads and works, but the app crashes when asked to display the gui. Same error as above.
So, it is related to the gui thread. It is present in the demo and my plug where I do not as yet have any interactions between the classes. No getting or setting or locking.
Things I’ve done that may play a part:
Removed 2 odbc references in the plug in project settings because I cant find the damn libs and they do not appear to be used.
Replaced the windows.h inclusion section in JuceVSTWrapper with the one suggested by Haydxn. Simply changing the order of the includes does not fix that problem.
I added the source dir to the compiler paths to allow JuceVSTWrapper to find JucePluginCharacteristics. But I think that’s kosher?
So, whats going on.