home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14256 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.0 KB  |  64 lines

  1. Newsgroups: comp.windows.x
  2. 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
  3. From: ng@ee.tamu.edu (Kit-Tong Ng)
  4. Subject: memory buffer full?
  5. Message-ID: <1992Jul23.145635.29774@tamsun.tamu.edu>
  6. Sender: news@tamsun.tamu.edu (Read News)
  7. Organization: Texas A&M University
  8. References: <9.>
  9. Date: Thu, 23 Jul 1992 14:56:35 GMT
  10. Lines: 52
  11.  
  12. Howdy:
  13.  
  14. Hope that some kind soul out there can help me up with the
  15. following error message:
  16.  
  17. The message pop up in a dialog box and refused to quit untill I 
  18. explicitly killed the process:
  19.  
  20. > Insertion failed - 
  21. > The memroy buffer is full.
  22. > If this is an isolated case, you can cicumvent
  23. > this condition by unloading the operation you just
  24. > performed, storing the contents of the subwindow
  25. > to a file using the text menu, and then redoing
  26. > the operation.  Or, you can enlarge the size of 
  27. > this buffer by changing the appropriate value in 
  28. > the .Xdefaults file (Text.MaxDocumentSize).
  29.  
  30. What I was trying to do was:
  31. > strcpy( cLine,"\n[ Xpos, Ypos ]:  Status of tree\n\n" );
  32. > textsw_replace_bytes(DspTabularTxtWnd,0,TEXTSW_INFINITY,cLine,strlen(cLine));
  33. > for( cnt=0; cnt<Len; cnt++ )
  34. > {
  35. >     strcpy( cLine," " );
  36. >     sprintf(cXpos,"%5d",tmp[cnt].Physical_x);
  37. >     sprintf(cYpos,"%4d",tmp[cnt].Physical_y);
  38. >     sprintf(cStage,"%4d",tmp[cnt].stage);
  39. >     strcat(cLine,cXpos);  strcat( cLine, ",  ");
  40. >     strcat(cLine,cYpos);  strcat( cLine, ":  ");
  41. >     strcat(cLine,cStage); strcat( cLine, "\n" );
  42. >     textsw_insert( DspTabularTxtWnd, cLine, strlen(cLine) );
  43. > }
  44. > strcpy( cLine, "\n|****************************|\n");
  45. > textsw_insert( DspTabularTxtWnd, cLine, strlen(cLine) );
  46.  
  47. what bug me is that the error msg will not appear if the number of 
  48. text displayed ( i.e. numerical value of Len ) is small.
  49.  
  50. Is there any way I can solve this problem??
  51. Thanks in advance.
  52.  
  53. Have a good day.
  54.  
  55. kit@Napolean.tamu.edu
  56. STARR Laboratory
  57. Department of Rangland Ecology and Management
  58. Texas A&M Unviersity
  59. College Station, Tx 77843-2126
  60. (409) 845-1553.
  61.  
  62.  
  63.  
  64.