Subj : Re: null pointer becomes 1 To : borland.public.cpp.borlandcpp From : "Dwayne" Date : Mon Oct 20 2003 02:57 pm Hello Heon, Heon >>I have a strang problem. I sets a pointer with 0, but it bocomes 1 when I get and check it. In my program it doesn't set the pointer to 1. This thing doesn't happen all the time. It happens sometime but often. Chances are, you are overwriting your memory. Take a look on how big your character strings are, and how large your data is being written into that string. Remember to add one extra char for the NULL at the end of a string. Check strcpy, strcat, strncpy strncat, and other similar functions. Make sure you initialize your string to null before doing a strcat. (Or be darn sure the data is what you want in that string). Dwayne .