Problems with Real Time MIDI Performance

Hi everyone!
I've been practicing with the help of the Michael Gogin's manual but in the part titled "Real Time Midi Performance" I had problems, I followed the instructions but at execute the play button the aplication was closed. What I must do?
Please somebody help me, it's very important to me to do this work.