From: Nigel Heath (DJGPP MAILING list) To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Fri, 24 Feb 1995 23:44:39 +0000 Subject: Re: Segmentation violation Reply-To: DJGPP AT nheath DOT demon DOT co DOT uk > What you should do is compile with the -g switch and then after you get >the stack dump, run symify (just type "symify a.out") and it'll tell you >where the bad pointer is. Then go look at your code and try to figure out >why that pointer might be pointing to NULL. This helped me quite a lot because when I ran symify I found it had somehow jumped into another part of the program I soon tracked this down then to a call to open() with a NULL pointer for the filename. Though I would have thought open would have trapped this. Anyway may thank for the pointer. Nigel Heath -- Nigel AT nheath DOT demon DOT co DOT uk nheath AT cix DOT compulink DOT co DOT uk