Coder Social home page Coder Social logo

How to use this with Visual Studio? about cr HOT 4 CLOSED

fungos avatar fungos commented on May 23, 2024
How to use this with Visual Studio?

from cr.

Comments (4)

fungos avatar fungos commented on May 23, 2024

That is supposed to work, as cr was created to solve the dll lock issue. Debugging the host should not lock the plug-in in any way, not sure what may be happening on your case. Try to validate that the plug-in is actually being copied and versioned in the output folder.

from cr.

sbond75 avatar sbond75 commented on May 23, 2024

I saw that the plugin was copied in the output folder with a "1" appended. What is the copy of the DLL used for? I would imagine it would be better to unload the DLL, invoke the compiler, then reload the DLL?

from cr.

fungos avatar fungos commented on May 23, 2024

cr host will monitor any timestamp change on the original dll, once detected it will unload the current loaded which is a copy that cr host does before loading one dll, and so it will copy this dll over and append a number which is used to track live rollback. Which this, the host will never lock the original dll compiled as it never uses that but only a copy. There are some details though though, just the copy will not actually guarantee the original dll isn't locked as cr needs to patch some debug info inside the copied dll.
in your case, you may have a problem there, where cr is unable to patch this data for some reason (path invalid? too long?), best would be to enable cr tracing and debug the cr host loading the dll.

from cr.

sbond75 avatar sbond75 commented on May 23, 2024

I found that I needed to link against the DLL from the host with /DELAY:UNLOAD and /DELAYLOAD: with the dll name appended, following this MSVC feature. However, I have not tested it with cr.h and am now using this for hot reload. If I need to switch back to it, it would probably work fine since this also seems to fix the pdb lock.

from cr.

Related Issues (20)

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.