Real-Time score input under Windows

Using CSound5 under Linux, I am able to send real-time score input to stdin and get sound as the score events are read. Using the same technique under Windows, the sound is not produced until I close the input stream. The Windows command line looks like this:

my_program | csound -g -L stdin -h -o devaudio orchestra.orc dummy.sco

Dummy.sco looks like this: "f 0 120000"

Any hint here how to get the sound output as the score events are read in?

If not, any hint who is the right party to ask, or where to post?

MIDI real time

With the help of the Csound Book, and this site, I have managed to get my csound system to read midi input, and output sound, however, the pitches output are random and often out of sample range. Not sure why that is, since the print commands indicate that the p fields are perfectly reasonable numbers. A kprint (using pluck instrument) for the frequency reveals that the numbers are indeed very high, very low, and very random even though p fields are right.

Anybody else know of this problem?

MIDI should work

I use real-time MIDI in Csound a lot, so it should work.
Can you post the code of the instrument concerned (or better the whole CSD file)? [Beware of the way it may get reformatted here! Use the <code> tag.]