<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks a lot for the answer.<br>I&#39;ve just tried put the data3 to 0 and it still crash. In fact, this
<br>error occurs also for<br>values of data1 &gt;= 192&nbsp;&nbsp;(I tried 193, 194, etc.)</blockquote><div><br>Yeah, but that&#39;s logical.<br>&quot;192&quot; means &quot;now I&#39;m going to send a program change which refers to the first MIDI channel&quot;, 193 means the same for the second channel and so on up to 207.
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It&#39;s not only strange, but also a bit annoying for my purpose ... ;-)</blockquote>
<div><br>Yes, quite so. It should be less strange and less annoying :-).<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Seems to be linked to linux version ?
</blockquote><div><br><br>Confirmed. The code below is what I posted to the list to demonstrate program change. This works on my Win laptop and on this machine (Demudi, stable) I get the same error that you did. (you can also insert &quot;0 =&gt; 
msg.data3;&quot; for the same results)<br><br>-----------------<br>MidiOut mout;<br>MidiMsg msg;<br>mout.open(0);<br><br>//refers to a program change on the first channel
<br>//add to it for following channels<br>192 =&gt; msg.data1;<br>//refers to the program to be loaded<br>4 =&gt; msg.data2;<br><br>mout.send(msg);<br></div>---------------<br><br>So, erm, the Linux version lacks the undocumented feature that the Windows version has. :-)
<br><br>Sorry,<br>Kas.<br><br></div>