[CM] MidiShare error with CM

Dave Phillips dlphillips@woh.rr.com
Sun, 11 Dec 2005 23:02:09 -0500


Rick Taube wrote:

>>
>> Umm, is that how it's supposed to behave ?
>
>
> i think this is a CMUCL/SBCL issue with output to the terminal from a 
> different thread.
> try adding a (force-output) after the print, ie doing something like:
>
> (set-receiver! (lambda (ev)
>                  (ms:MidiPrintEv ev)
>                  (force-output)
>                  (ms:MidiFreeEv ev))    ; dont forget to free an ev if 
> you dont resend!
>                *ms*)

Thanks, Rick, that fixed it. Now how do I get a newline after each 
force-output ? :)

Best,

dp