[comp.sys.mac.programmer] Serial device problems

thorson@typhoon.atmos.colostate.edu (Bill Thorson) (02/19/90)

I need an immediate answer on this one.  Today if possible (Sunday 18th).

I am having problems controlling the serial port.  I want to give the serial
port a bigger input buffer but it doesn't seem to want to use it.  If I
just use the standard buffer I get a software overrun error after 64 
character of input.  This is exactly what I expect.  I allocate a 32K buffer
and call SerSetBuf() and then I get a software overrun at about 3 characters.

The Inside Macintosh, vol. II, pg. 251 has this written.
WARNING: You must lock a new input buffer while it's in use.
I'm not sure what they mean by locking the buffer.  I don't even attempt
to use it for anything else.

What do they mean by locking the input buffer?
What seems to be my problem?
Help?


#!/bin/sh
#-----------------------------------------------------------------------#
echo Bill Thorson                   thorson@typhoon.atmos.colostate.edu
echo Dept of Atmospheric Science    (303) 491-8339
echo Colorado State University
echo Ft. Collins,  CO  80523        Cray||Sun||Amiga -- I can't decide?
#-----------------------------------------------------------------------#