Hi Adam,
thanks for your reply, my OS is Ubuntu 22.04 on linux, and I use Projucer, Linux Makefile. Then i test the plugin with Ardour. To try debug i put some cout<<“messages”<<endl; in my code, and i look in a terminal.
Thanks. i succeeded to compile and execute. I am using emacs to write the c++ code, compile, etc. The plugin works well on ardour if i use only a single instance of it, and crashes if i use two instances. This is my problem. There are global variables in my plugin, may be the problem comes from there. Do you know if i can use debugger gdb with ardour?
Avoid using global variables at all cost. This could be the reason your plug-in works with only one instance and starts to behave incorrectly with two. Not global variables themselves of course but what your code is doing with them. Also, did you try to build a simple empty plug-in (or the GainPlugin demo) and see if it works correctly (multiple instances in Ardour) ?
Thank you for this explanation. Yes indeed, i am new with Plugins, and my mistake was to use global variables without care. Now i have checked this, used also ardour with debug mode and everything goes better. Thanks a lot.