Currenlty my freeware MIDI plugin BlueARP
http://www.kvraudio.com/forum/viewtopic ... sc&start=0
has some stability issues I don't know how to fix.
It's all OK when I run single instance, but it sometimes crashes when using 2 or more instances.
I'm using Delphi7 for development, but I think this issues are general for win32 VST development.
My first suspiction was about concurrent calls of GetTimeInfo(). I call it frequently to obtain PPQ position from host. Then I created global critical section oblect (TCriticalSection) and surrounded calls to GetTimeInfo like this.
Code: Select all
CriticalSection.Enter;
GetTimeInfo();
CriticalSection.Leave;
Critical section is a global var, created in initialization part of a library.
Another suspiction is that I use global structure with GUI-related variables like colors, margins, fonts. I fill it also in initialization section and then just read. May it be the problem?
