Well, the end has come. Two people recognized my problem (one from Symantec). Notice I never had #include<stdlib.h> in my code. That is what caused the problems. I still don't understand why it even compiled, or got past the malloc statement without that include. Oh well, thanks a lot for the help. Stas