On 26-05-2019 00:44, Alex X wrote:
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.
Im not able to reproduce your issue, where did you get your copy op GTK?