I have a Juce VST Audio Plugin running under Cubase 5 and 6. When I include a DialogWindow in the plugin editor then after closing a Cubase project Cubase crashes. If I don’t include the DialogWindow in the editor then there is no crash. Also if I manually close the editor before closing the project then there is no crash. So Cubase crashes when the project is closed while the editor is open, but does not crash if the editor is already closed before closing the project. In either case the DialogWindow is never visible, only instantiated. So it seems there might be a race condition that occurs during the process of closing the main editor window and deleting objects. The crash occurs in both Cubase 5 and 6. In the debugger the crash seems to occur during the infamous Cubase CResampleBase() routine, although this is the case for many unrelated Cubase crashes judging from a Google search. In trying to debug the problem I have simplified my DialogWindow derived class to point where it has no overridden functions, no content component, and no calls are made on the DialogWindow other than the constructor and delete. I am running Mac 10.6.6 and running 32 bit Cubase. Any Ideas?