![]() |
Segmentation fault
What in the hell is segmantation fault?
I have a code in c++ which has dynamic allocate memory. The code is being compiled under linux with gcc with no problem. But when i use another os, like solaris with gcc it says segmentation fault? |
Segmentation faults are usually the result of touching memory in some way that you have no right to touch it. (e.g. accessing a dangling pointer, trying to write to the read-only memory reserved for string literals and constants, accessing memory beyond the bounds of an array...)
|
| All times are GMT -5. The time now is 09:15 PM. |