Strange behaviour when loading plugin in host
- 
@ulrik Anyone having a clue what's going on?
 - 
Are you using MIDI files in your project?
It seems like you've passed an empty string into the
loadFile()method, but it's weird that this doesn't fail consistently. - 
@Christoph-Hart Yes I am, but no midi file named .mid only (as it says in the message)
 - 
@Christoph-Hart Could it be this code that make this happen:
const var DemoSongsArr = ["Bel viso", "Lorda mornar", "Sakkijarven polkka", "Vals i natta", "Miss Karting", "Marias vinter", "Pigornas tango", "Nocturne", "Kass theme", "Libertango", "Hej va de gar"];MIDIPlay.setFile("{PROJECT_FOLDER}"+DemoSongsArr[value]+".mid", true, true); - 
@ulrik Comment it out and see if it works ;)
Or use
Console.print(DemoSongsArr[value]+".mid");To see if it's the expected file name.
 - 
@d-healey Haha, beautiful David, I used the "Console.print(DemoSongsArr[value]+".mid");" and at initialising I have nothing chosen in the combobox so it looks for ".mid" :)
So I guess I have to set a default value for the combobox when init, right? - 
@ulrik said in Strange behaviour when loading plugin in host:
So I guess I have to set a default value for the combobox when init, right?
Or check if the value is 0, which means no selection.
 - 
@Christoph-Hart @d-healey Thank you both, now it's solved, I saved the project with a value assigned to the combobox! :)
 - 
Console.print()- the most important function. - 
@d-healey true, true, true.....
I just have to remember that :)