Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

How to programmatically determine a loaded assembly's size?

Back to Forum: Tech Off
  • User profile image
    yasko

    Hello all,

    I'm trying to determine the size a loaded assembly takes in memory.  Does anyone know how to do this?  I can use Process Explorer, but I'm trying to automate a particular task.

    This is what I'd like to do:

    foreach (string LstrFilename in LobjDialog.FileNames)
    {
       Assembly LobjAssembly = Assembly.LoadFrom(LstrFilename);
       MaobjAssemblies.Add(LobjAssembly);
       int LintSize = LobjAssembly.Size; // this property doesn't exist!
    }

    Does anyone have any ideas?

    Thanx in advance,

    Yasko

  • User profile image
    lethalbyte

    - misread -

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.