When compiling for x86 my code crashes when initing gtk. Works for x64.

public static void init(ref string[] argv)
{
	int argc = cast(int)argv.length;
	char** outargv = Str.toStringzArray(argv);

// Crashes here. Access violation.

gtk_init(&argc, &outargv);

argv = Str.toStringArray(outargv, argc);

}

I modified it to take null arguments but it still crashes. It may have something to do with my gtk install but I have no idea because I have no idea what the error is.

It all works in x64.