On 2012-09-14 20:53, alex wrote:

The primary injection routine and how it works is not the problem - I
can successfully insert a MSVC++ Dll without any problems into a D
program. (I've used this https://github.com/jeffora/extemory library btw
- it's for c# :-))
Anyway, on a DLL built with dmc or dmd 1/2, the main program immediately
crashes or unloads the dll when returning false in the DllMain()

So how to insert a D DLL into a D program?

I don't know the status on Windows but in general D dynamic libraries don't properly work. The problems are TLS, exception handing tables and module infos. There might be other problems as well.

--
/Jacob Carlborg

Reply via email to