Segmentation fault hell in D

Kai Meyer kai at unixlords.com
Fri Jun 8 10:46:00 PDT 2012


On 06/08/2012 11:30 AM, "Jarl André" <jarl.andre at gmail.com>" wrote:
> Evry single time I encounter them I yawn. It means using the next
> frickin hour to comment away code, add more log statements and try to
> eleminate whats creating the hell of bugz, segmantation fault. Why can't
> the compiler tell me anything else than the fact that i have referenced
> data that does not exist? Thanks I knew that. Now, please tell me where
> the error occured.... Jeezes.

If you build with -debug, it should enable code that will do those 
checks for you in things like arrays and associative arrays (where I 
find I have the most problems). It'll throw an exception rather than 
segfault. Very handy.


More information about the Digitalmars-d-learn mailing list