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. .NET (Core and Framework)
  4. Dynamic loaded Assembly attaching PDB file

Dynamic loaded Assembly attaching PDB file

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetdebuggingperformancequestion
3 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.
  • P Offline
    P Offline
    Paul Farry
    wrote on last edited by
    #1

    I've written a dynamic assembly loading mechanism using Memorystreams, that enables me to "hot" unload an assembly, and load a new version without needing to shutdown my executable. I use Debug versions of my assemblies so that I can get StackTraces out of Exceptions if they occur, which works fine when I use a filebased load of the assembly. Is there some way that I can tell .NET that my PDB files are in a Disk location, and the Assembly has been loaded from a memory stream? BTW: This is using .NET Framework 1.1

    D 1 Reply Last reply
    0
    • P Paul Farry

      I've written a dynamic assembly loading mechanism using Memorystreams, that enables me to "hot" unload an assembly, and load a new version without needing to shutdown my executable. I use Debug versions of my assemblies so that I can get StackTraces out of Exceptions if they occur, which works fine when I use a filebased load of the assembly. Is there some way that I can tell .NET that my PDB files are in a Disk location, and the Assembly has been loaded from a memory stream? BTW: This is using .NET Framework 1.1

      D Offline
      D Offline
      DaveKolb
      wrote on last edited by
      #2

      Paul, Did you ever figure out how to do this? I am having the exact same issue. Thanks, Dave

      Dave Kolb http://dotnetcodeslingers.com

      D 1 Reply Last reply
      0
      • D DaveKolb

        Paul, Did you ever figure out how to do this? I am having the exact same issue. Thanks, Dave

        Dave Kolb http://dotnetcodeslingers.com

        D Offline
        D Offline
        DaveKolb
        wrote on last edited by
        #3

        OK I figured it out - just use the other version of Load(byte[], byte[]) where the second byte array is the symbol stream!

        Dave Kolb http://dotnetcodeslingers.com

        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