Comments (4)
I would strongly suggest using a child component to display your dialog; popping up modal dialogs from within plug-ins is fraught with danger. For example, in your code above, if you close the host application while the dialog is open then you will have a memory leak.
from juce.
Thanks for the suggestion.
The code above is just a minimalistic reproduction of the problem, in reality I'm creating the ModalDialog in the constructor of my PluginEditor and that is managing it's livetime. If I do it slightly later, all is good. Also with VST3 and AU, all is dandy.
AFAIK the modal component manager takes care of closing all remaining modal dialogs at exit. Otherwise PopupMenus et.al. would have the same problem, as they also are modal components (see void ComboBox::showPopup(), PopupMenu::showMenuAsync(), ).
I think it's just an issue with the order stuff is done when a new VST2-Plugin Editor is created.
EDIT: the reason why I want to create a modal dialog is, that I have components that are larger than my main plugin editor.
from juce.
Popups are vulnerable to the same problem; the JUCE Demo was only fixed a few days ago (6547452 and e2dc460).
I'll see if we can improve the modal state handling when a VST editor is created, though if I recall correctly it's occasionally necessary to create an editor silently in the background to please some hosts.
from juce.
I re-designed my UI, so that I no longer have this issue. thx.
from juce.
Related Issues (20)
- [Bug]: SVG rendering assertion failure HOT 1
- [Bug]: juceNotificationToNSUserNotification assertion failure on call to varObjectToNSDictionary HOT 2
- [Bug]: Projucer settings for ARA content types and transformation flags don't take effect HOT 2
- [Bug]: Debug Error on Manifest creation or deletion in build process HOT 4
- [Bug]: Closing the Standalone plugin gives a Violation Access error HOT 6
- [Bug]: Compilation failure on Ubuntu Linux 20.04 with g++ 9.4.0 in juce_ALSA_linux.cpp HOT 2
- [Bug][Regression]: New local plugin copy step doesn't work for ARA plugins on Logic Pro HOT 2
- [Bug][Regression]: ARA plugins assertion failure on load HOT 5
- KeyPress::isKeyCurrentlyDown doesn't read '=' and '\\' keystate in Windows [Bug]: HOT 5
- [Bug]: AudioProcessorGraph unexpectedly mutates a node UID of 0 instead of disallowing it
- Recent DynamicObject::writeAsJSON() breaking change issue not documented HOT 1
- [Bug]: Linux ARM 64bit not properly detected HOT 1
- [Bug]: Modals cancelled when app is minimised HOT 1
- [Bug]: Input method not working properly in Win10/Win11 with juce::TextEditor
- [Bug]: GCC on Linux fails linking CMake-based JUCE audio plugins with binary data HOT 2
- [Bug]: ChildProcess Leaves Zombies in Linux HOT 2
- [Bug]: dsp::Limiter distorts if threshold >> 0.0 dBFS
- [Bug]: juce_midi_ci SupportedAndActive should not use `active` field for storing numChannelsRequested HOT 1
- [Bug]: Android exporter in Projucer for Unity plugins not working HOT 1
- [Bug]: juce_midi_ci property host does not expect Reply To Subscription in reply to Subscription messages HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from juce.