Hello Russ, Saturday, February 26, 2005, 9:18:18 PM, you wrote: RC> your other problems may well go away once you fix this. How fix this? text_count++; size=msize(Text); if (size<=(text_count*2)) Text=realloc(Text,size+BLOCKSIZE); This code cause my problem... (other part of function still not implemented) I wrote program which test this function, it's add 100 times some symbol to buffer... and get same result... then port it to Windows and get full work program... :-/ Thanks for help -- http://rs-rlab.narod.ru mailto:rs_rlab@mail.ru