thanks a lot, that was exactly the problem... some function being called before the realloc stuff... shokran... :)
that helped a lot... btw, is this stuff studied in like compiler design courses and books ? or is it self-gained info ? is it like advanced OS topics and stuff ?
Kamal
ak.