I am trying to make a simple modal custom component which inherits from Component in a VST plugin. When trying to show it, I called the function enterModalState (false, 0) and it didn’t do anything. When debugging inside the library code and compared with a PopUpMenu, I realised that the flag hasHeavyweightPeerFlag is false while in the popUpMenu is true. (Function getPeers() returns null pointer and Component::isShowing() always returns false). That’s the reason (or maybe there are other reasons) why it didn’t enter in modal state. I think I forgot something when creating custom component.