I’m sorry but another issue popped up now. The example below is similar as above, but adding file buttons. Please try both modes (file and save). They both crash Cabbage here. This was not an issue before (in ver. 2.7.16).
Btw. to revert back to older versions I still need to delete the app first. And I noticed in the past and now again that the button’s mode() identifier gets deleted automatically somehow (possibly when moving widgets). This is really annoying if I don’t notice it.
<Cabbage>
form caption("Untitled") size(400, 300), guiMode("queue"), pluginId("def1")
filebutton bounds(10, 10, 70, 20) channel("IO_SaveAs") mode("save") text("SAVE AS", "SAVE AS")
filebutton bounds(10, 50, 70, 20) channel("IO_Browse") mode("file") text("BROWSE", "BROWSE")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d
</CsOptions>
<CsInstruments>
ksmps = 32
instr 1
SPathToCsd strcpy "/Users/Samo/Documents/test/0001/0002/0003/0004/0005/0006/0007/0008/0009/0010/0011/0012/0013/0014/0015/0016/0017/0018/preset.txt"
SFile cabbageGetValue "IO_Browse"
;SFile cabbageGetValue "IO_SaveAs"
SFile strcpy SPathToCsd
kFileValid init filevalid(SPathToCsd)
prints SPathToCsd, 1
endin
</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
i 1 0 -1;[60*60*24*7]
</CsScore>
</CsoundSynthesizer>