C# Interop

Richard Webb webby at beardmouse.org.uk
Wed Feb 2 09:22:48 PST 2011


>> Also, DLLs can be used in multi-threading environments.

On a related note, i'm having a bit of a problem with a D dll at the moment.

I have an Outlook COM Addin that is written in D2 using the Juno library and that
is running ok, but i'm now trying to use a D dll from a COM addin written in C++
and i'm getting a crash inside dll_process_attach.

The only thing i get in the call stack is gcx.mark, but it appears that the crash
is due to the GC running midway through the thread setup code. Disabling the GC
during the thread_moduleTlsCtor() calls avoids the crash, but that might just be
covering the problem up.

This is with the latest druntime/phobos code from a couple of days ago plus your
patch from #5382, running on Windows 2008.

Any ideas?


More information about the Digitalmars-d mailing list