[comp.windows.x] Buffer overflow in xview's text subwindow

babu@ctc.fmc.COM (Babu Srinivasan) (06/11/91)

I have 4 text subwindows in my application. I have set the following
attributes:

		TEXTSW_READ_ONLY,       	TRUE,
		TEXTSW_LINE_BREAK_ACTION, 	TEXTSW_WRAP_AT_WORD,
		TEXTSW_BROWSING,  		TRUE, 
		TEXTSW_WRAPAROUND_SIZE, 	100000,
		TEXTSW_DISABLE_LOAD, 		TRUE,


After running for a few minutes, I get a notice saying "Insertion
Failed. Text buffer full ....."
I am not allowed any options at this point like erasing the buffers.
This message keeps appearing again and again; the application has to
be killed.


Shouldn't TEXTSW_WRAPAROUND_SIZE attribute cause the text window to
discard all but the last  100000 bytes ?

I also tried using 
       TEXTSW_FILE,  "commands1.log"
but xview doesn't flush the buffers to file.

Can somebody shed some light on this matter ?
Thanks.

-Babu Srinivasan
babu@ctc.fmc.com