SIGSEGV in invariant._d_invariant(Object)

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 6 13:58:51 PST 2016


On Wednesday, 6 January 2016 at 21:50:23 UTC, Keywan Ghadami 
wrote:
> how to fix an SIGSEGV in invariant._d_invariant(Object)?

That means you are calling a method on a null object.

Your object might be at the bottom of the stack trace listing. 
Check your code for a declared class that you forgot to use `new` 
on, that's usually the cause with new users (in D, you must 
explicitly new all classes you create.)


More information about the Digitalmars-d-learn mailing list