Bugfix
Hi,
I found that Cubase LE 3 did not really like my code. (it worked fine with Cubase 5 and with all other hosts that I have tried so far)
When the plugin is loaded for the first time Cubase 3 tries to do some tests. It creates a plugin instance then calls setSampleRate() (which in turn triggers an IPLug Reset() )
This is where my thread process is started. The Plugin object is now destroyed and unfortunately my thread function is then executed right after the underlying object has gone away. Bang!
I have now fixed the issue. The thread class example a few posts above contains the updated code.
Andreas
|