On Tue, 15 Apr 2014 10:30:26 GMT, Dicebot wrote:

On Tue, 15 Apr 2014 06:42:57 GMT, Nikolay Tolstokulakov wrote:

I suppose your OS is Linux, and you have problem with null pointer. It is not vibe problem, please refer to

http://forum.dlang.org/thread/lg18lj$31bl$1@digitalmars.com

in short you should add:

import etc.linux.memoryerror;
registerMemoryErrorHandler();

I wouldn't recommend using it in production code, this module is not widely advertised for a reason : hacky implementation which is not strictly POSIX-compliant. It is helpful for debug builds but to fix actual issue I'd recommend to find origin of null dereference and fix that instead. In general I don't think JSON module should create a null dereference within any normal workflow and if it happens, it should be filed as a bug.

Thanks for the info. Yes, I am on Linux and I'm guessing it's a null pointer issue (No error message). I guess to go back to my original question, it sounds like the issue isn't how I'm handling errors, it's a problem with the std.json library that's causing the program to exit, correct? If so, I'll dig into this further.