Giter Site home page Giter Site logo

Comments (4)

wokhan avatar wokhan commented on September 17, 2024

Hi, I'm probably way too late to the party but still it could help someone.
According to dotnet official sample, and if I'm not mistaking, coreclr signatures changed and in fact the issue you see is a side effect of the coreload library failing to properly load .NET, which, if you look thoroughly, causes the target process to restart with a new PID.
Since it has a new PID, the following call (attemtping to inject the hook, this time), will fail, and memory won't be either freeable (or allocated in some cases I encountered) since there is no target process anymore.
Hope this helps you... as it would have helped me reconsider using .NET 7 (or 6) with CoreHook...
I may try to update this lib for .NET 6+, but looks way more complex than what I'm used to.

from corehook.host.

CryoMyst avatar CryoMyst commented on September 17, 2024

@wokhan Not too late but there doesn't seem to be any activity here to get this updated, I ended up just building an adapter library around https://crates.io/crates/netcorehost before moving onto my own implementation.

from corehook.host.

wokhan avatar wokhan commented on September 17, 2024

Hi @CryoMyst, in fact I was also interested to see how bad my C++ was nowadays, so I've been working on this the last few days.
I hope I'll have something working soon, but I'm really unsure if it will be enough or not (rebuilding a new .NET 6/7 "corehost" lib is the simple part thank to the available samples, and I'm still not done with it)..

If I succeed, I might either issue a PR here or create a fork... We'll see...
It also depends on @unknownv2, as I've seen no activity here for a few years (hoping he's fine).

from corehook.host.

wokhan avatar wokhan commented on September 17, 2024

Hi, I totally forgot about that, I don't know if you saw but I finally ported and rewrote CoreHook for .NET 6+... Check my github if interested.

from corehook.host.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.