Hi All,

I have noticed that sometimes when I introduce a new variable to a header file, the code produces following error:
Code:
Program received signal SIGSEGV, Segmentation fault.
0xb7eb3e4e in std::string::assign () from /usr/lib/libstdc++.so.6
This time, the varibale I introduced was just an int.
After that, to know where my program crashed, I introduce few "cout" statements in the code. When I found out after which line my code is crashing, I introduce few more "cout" statements. I keep on introducing "cout" statements until the end of the program flow. After that, the code just start working normally with the new introduce variable.

Do you guys have any idea, why this happens?

Thanks.