nektra / Deviare-InProc

Deviare In Process Instrumentation Engine
http://nektra.com/products/deviare-api-hook-windows/deviare-in-process/
Other
330 stars 84 forks source link

_CrtIsValidHeapPointer(block) #12

Closed besoeso closed 8 years ago

besoeso commented 8 years ago

Hi, i have compiled the last code source from Git.

I have tested the new updates for injection. I use visual studio 2015.

In release mode work fine. This error is for NktHookLibHelpers::CreateProcessWithDllW API.

I have compiled the sample code in debug mode for x32. When try do injection got the follow error:


Microsoft Visual C++ Runtime Library

Debug Assertion Failed!

Program: C:\InjectDll.exe File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp Line: 888

Expression: _CrtIsValidHeapPointer(block)

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

Regards.

mxmauro commented 8 years ago

Mmm we didn't get any assertion on our tests. How does the InjectDll sample work in your environment?

besoeso commented 8 years ago

It is Windows 7 x32 with Visual studio 2015.

Regards.

mxmauro commented 8 years ago

InjectDll provided sample fails with same error?

besoeso commented 8 years ago

Yes. I use the sample project injector.

Regards.

mxmauro commented 8 years ago

Hi @besoeso we didn't hit any assert on provided InjectDll code but we fixed some issues in dll loader on injected process. Please try with the uploaded changes.

besoeso commented 8 years ago

Hi, i have tested the last changes. All working fine now. Debug Assertion fixed (no show).

Thanks and regards.

mxmauro commented 8 years ago

Glad to hear! Regards.