"null this"

Mineko uminekorox at gmail.com
Mon Dec 9 11:35:36 PST 2013


So, I was doing some coding to my IO.d, and came across the 
strangest error, I looked it up and tried some different asserts, 
which is why it shows up as something different from "null this" 
now, anyway here, I seriously can't figure this out, the code is 
here: http://pastebin.com/bGiKMM4Y

core.exception.AssertError at src/breaker/utility/io.d(167): 
(io.d:add) this is null
----------------
bin/Breaker 3D Game Engine(_d_assert_msg+0x45) [0x5130e9]
bin/Breaker 3D Game Engine(void 
breaker.utility.io.IO.add!(immutable(char)[], immutable(char)[], 
immutable(char)[]).add(immutable(bool), immutable(char)[], 
immutable(char)[], immutable(char)[])+0x66) [0x4c355e]
bin/Breaker 3D Game Engine(immutable(char)[] 
breaker.utility.io.getDir(immutable(char[]))+0x1c2) [0x4c17ea]
bin/Breaker 3D Game Engine(breaker.utility.io.IO 
breaker.utility.io.IO.__ctor(immutable(char[]), 
immutable(char[]), immutable(char[]))+0x1cf) [0x4c1e37]
bin/Breaker 3D Game Engine(_Dmain+0x8b) [0x4c75bb]
bin/Breaker 3D Game Engine(void rt.dmain2._d_run_main(int, 
char**, extern (C) int function(char[][])*).runAll().void 
__lambda1()+0x18) [0x514a20]
bin/Breaker 3D Game Engine(void rt.dmain2._d_run_main(int, 
char**, extern (C) int function(char[][])*).tryExec(scope void 
delegate())+0x2a) [0x51497a]
bin/Breaker 3D Game Engine(void rt.dmain2._d_run_main(int, 
char**, extern (C) int function(char[][])*).runAll()+0x30) 
[0x5149e0]
bin/Breaker 3D Game Engine(void rt.dmain2._d_run_main(int, 
char**, extern (C) int function(char[][])*).tryExec(scope void 
delegate())+0x2a) [0x51497a]
bin/Breaker 3D Game Engine(_d_run_main+0x1a3) [0x5148fb]
bin/Breaker 3D Game Engine(main+0x25) [0x4c7d85]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7ff428219bc5]
----------------

Exited: 256

Thank you for your time and help.


More information about the Digitalmars-d-learn mailing list