home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!sdd.hp.com!cs.utexas.edu!tamsun.tamu.edu!ee.tamu.edu!ng
- From: ng@ee.tamu.edu (Kit-Tong Ng)
- Subject: memory buffer full?
- Message-ID: <1992Jul23.145635.29774@tamsun.tamu.edu>
- Sender: news@tamsun.tamu.edu (Read News)
- Organization: Texas A&M University
- References: <9.>
- Date: Thu, 23 Jul 1992 14:56:35 GMT
- Lines: 52
-
- Howdy:
-
- Hope that some kind soul out there can help me up with the
- following error message:
-
- The message pop up in a dialog box and refused to quit untill I
- explicitly killed the process:
-
- > Insertion failed -
- > The memroy buffer is full.
- > If this is an isolated case, you can cicumvent
- > this condition by unloading the operation you just
- > performed, storing the contents of the subwindow
- > to a file using the text menu, and then redoing
- > the operation. Or, you can enlarge the size of
- > this buffer by changing the appropriate value in
- > the .Xdefaults file (Text.MaxDocumentSize).
-
- What I was trying to do was:
- > strcpy( cLine,"\n[ Xpos, Ypos ]: Status of tree\n\n" );
- > textsw_replace_bytes(DspTabularTxtWnd,0,TEXTSW_INFINITY,cLine,strlen(cLine));
- > for( cnt=0; cnt<Len; cnt++ )
- > {
- > strcpy( cLine," " );
- > sprintf(cXpos,"%5d",tmp[cnt].Physical_x);
- > sprintf(cYpos,"%4d",tmp[cnt].Physical_y);
- > sprintf(cStage,"%4d",tmp[cnt].stage);
- > strcat(cLine,cXpos); strcat( cLine, ", ");
- > strcat(cLine,cYpos); strcat( cLine, ": ");
- > strcat(cLine,cStage); strcat( cLine, "\n" );
- > textsw_insert( DspTabularTxtWnd, cLine, strlen(cLine) );
- > }
- > strcpy( cLine, "\n|****************************|\n");
- > textsw_insert( DspTabularTxtWnd, cLine, strlen(cLine) );
-
- what bug me is that the error msg will not appear if the number of
- text displayed ( i.e. numerical value of Len ) is small.
-
- Is there any way I can solve this problem??
- Thanks in advance.
-
- Have a good day.
-
- kit@Napolean.tamu.edu
- STARR Laboratory
- Department of Rangland Ecology and Management
- Texas A&M Unviersity
- College Station, Tx 77843-2126
- (409) 845-1553.
-
-
-
-