Hmm... It's probably confused by multiple threads. You can try to
copy the source for dll_process_attach and insert debugging code
there.
On Monday, 14 May 2012 at 09:53:55 UTC, Kagamin wrote:
Try to make C dll, which loads D dll, and inject the C dll :)
I made a bootstrapper (a c DLL which loads the D Dll) and it
works fine (the D entrypoint get called (a made a msgbox test)
but then the Process freezes after it displayed the
Try to make C dll, which loads D dll, and inject the C dll :)
I found a couple of errors in my code but couldn't get it to work.
On Thursday, 12 April 2012 at 14:43:01 UTC, maarten van damme
wrote:
works and GetLastError() returns 0 in both cases.
Op 12 april 2012 16:13 schreef Kagamin het
volgende:
#include
void main()
{
LPTHREAD_START_ROUTINE LoadLibAddy =
(LPTHREAD_START_ROUTINE)**
GetProcAddress(**GetModuleHan
works and GetLastError() returns 0 in both cases.
Op 12 april 2012 16:13 schreef Kagamin het volgende:
> #include
> void main()
> {
> LPTHREAD_START_ROUTINE LoadLibAddy = (LPTHREAD_START_ROUTINE)**
> GetProcAddress(**GetModuleHandle("kernel32.dll"**), "LoadLibraryA");
> CreateThread(NULL,0,**
#include
void main()
{
LPTHREAD_START_ROUTINE LoadLibAddy =
(LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle("kernel32.dll"),
"LoadLibraryA");
CreateThread(NULL,0,LoadLibAddy,"mydll.dll",0,NULL);
}
?
I tried again with a few other random C dll's stolen around my system and
they all work perfectly. it's only the D dll that gives me trouble.
On Wednesday, 11 April 2012 at 13:26:23 UTC, maarten van damme
wrote:
the code I use for injecting is
/**
* injectDLL injects a dll in a given process using the
CreateRemoteThread
function.
*
* arguments:
* HANDLE proc = A HANDLE to the process
* string dllName = A string containting the nam
On Wednesday, 11 April 2012 at 13:26:23 UTC, maarten van damme
wrote:
I went ahead and went back to as far as 2.045 and I still
couldn't get a
working dll. This would suggest something is wrong with my dll
injection
code but I've tested with a few other random dll's and that
appears to
work. ac
I went ahead and went back to as far as 2.045 and I still couldn't get a
working dll. This would suggest something is wrong with my dll injection
code but I've tested with a few other random dll's and that appears to
work. according to my debugger the problem is an access violation while
executing
this works on every dll I try to inject apart from dll's written in D
(starting with dmd version 2,054 or something like that).
If this is a regression, please narrow it down to the exact version.
I wrote my own injector and this makes the target exe call loadlibrary.
this works on every dll I try to inject apart from dll's written in D
(starting with dmd version 2,054 or something like that).
I'll try with D calling loadlibrary on D dll's this evening.
On Tuesday, 27 March 2012 at 21:46:23 UTC, Trass3r wrote:
I inject it but it returns nothing and the App(where the dll
is injected) is hanging( not responding).
Could you try it maybe?
I would like to know whether it's a Problem with D or with me.
Are dlls without injection working?
I don't
I inject it but it returns nothing and the App(where the dll is
injected) is hanging( not responding).
Could you try it maybe?
I would like to know whether it's a Problem with D or with me.
Are dlls without injection working?
On Tuesday, 27 March 2012 at 21:12:59 UTC, Trass3r wrote:
Maybe it's because I have no def file.
Very possible.
Just pass it to dmd like the other files.
Or try the new -shared flag.
I have tried both now (shared and def file linking), but know
it's crashing my App, lol.
I inject it but it
Maybe it's because I have no def file.
Very possible.
Just pass it to dmd like the other files.
Or try the new -shared flag.
On Tuesday, 27 March 2012 at 20:45:52 UTC, maarten van damme
wrote:
when I tried the previous dmd compiler (have yet to try the
curent one on
this problem) I got the same problems while trying to compile a
dll and use
it. I have no clue as to why this is happening. worked in 2.54
I thought
I
when I tried the previous dmd compiler (have yet to try the curent one on
this problem) I got the same problems while trying to compile a dll and use
it. I have no clue as to why this is happening. worked in 2.54 I thought
19 matches
Mail list logo