D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] C++ segmentation faults



On Fri, 5 Apr 2002, Neil Williams wrote:

What might cause a segmentation fault?

Trying to use memory that doesn't belong to you - for instance,
dereferencing an uninitialised or null pointer.   In other words,
a straightforward bug.  C is very unforgiving of sloppy programming,
and C++ inherits some of that.

gdb is your friend.

-- 
Nick Kew

Site Valet - the mark of Quality on the Web.
<URL:http://valet.webthing.com/>




--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly