Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Unloading an Assembly loaded via reflection.

Unloading an Assembly loaded via reflection.

Scheduled Pinned Locked Moved C#
testingbeta-testinghelpquestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    I've loaded an assembly by reflection, and now wish to re-combile the resource it represents, before continuing my testing of it. The problem i have is, once i load an assembly, it remains in use until i exit my application. I've closed all refferences to this assembly, and all types used by it have been disposed and garbage collected. How would i go about unloading the assmebly completely from my application? Cheers Tris

    F 1 Reply Last reply
    0
    • T Tristan Rhodes

      I've loaded an assembly by reflection, and now wish to re-combile the resource it represents, before continuing my testing of it. The problem i have is, once i load an assembly, it remains in use until i exit my application. I've closed all refferences to this assembly, and all types used by it have been disposed and garbage collected. How would i go about unloading the assmebly completely from my application? Cheers Tris

      F Offline
      F Offline
      Febret
      wrote on last edited by
      #2

      Unloading of single assemblies is not possible. You can unload only at the AppDomain level, so a solution in your case could be loading your assembly in a separate appdomain and then unload it when it is no longer used. For a better explanation on the reasons why you cannot unload single assemblies and alternative ways of doing it i suggest you this Bye!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups