On 2014-11-07 15:23, Christian Schneider wrote:

I get the SIGSEGV when i try to NSLog this string constant. I was not
looking any further, because if it fails to NSLog, i can't do anything
with it ;)

Now I know what the problem is. In D, module variables are by default in TLS (thread local storage). To make it refer to a global C variable, use __gshared:

extern (C) extern __gshared NSString NSApplicationDidHideNotification;

Sorry, I completely forgot about that.

/Jacob Carlborg

Reply via email to