*** Leaked objects detected: 1 instance(s) of class WindowsMidiService
The port work, I can send midi events. But when the application end, there is this leak. When I try to open severals ports with scopedpointers, still there is one instance of WindowsMidiService that leaked …
So if I missed something I hope someone could tell me
Yes I already try to not delete it. But it s worst cause when I use severals midioutputs and not delete them I have the same number of leaked objects. But when I use scopedpointers I only have one ^^’
The MIDI system creates singleton objects in the background, but you’ve put this call inside a main() function that doesn’t give any of it chance to clean up before the process is killed. See the ScopedJuceInitialiser_GUI class, maybe?