473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Loaded module list.

Hi all!

I'd like to get the list of loaded modules by my assembly, like VS does at
debug time in the loaded modules window.
I load some assembly via Assembly.LoadFile() and I'd like to retrieve these
assemblies in some way.

I tryied with

System.Reflection.Assembly.GetEntryAssembly().GetL oadedModules()

but all I get is the assembly of the main exe :(

Some help?

Thanks
Dec 15 '06 #1
2 4798
Hello, Fabio!

try AppDomain.GetAssemblies method.

To access your current AppDomain use AppDomain.CurrentDomain static property

You wrote on Fri, 15 Dec 2006 16:02:00 +0100:

FZI'd like to get the list of loaded modules by my assembly, like VS does
FZat debug time in the loaded modules window.
FZI load some assembly via Assembly.LoadFile() and I'd like to retrieve
FZthese assemblies in some way.

FZI tryied with

FZSystem.Reflection.Assembly.GetEntryAssembly().Ge tLoadedModules()

FZbut all I get is the assembly of the main exe :(

FZSome help?
With best regards, Vadym Stetsyak. E-mail: va*****@ukr.net
Dec 15 '06 #2
Hi,

First off, are you sure that there are multiple modules in the assembly to
begin with?

Modules are for multifile assemblies:

".NET Framework Developer's Guide, Multifile Assemblies"
http://msdn2.microsoft.com/en-us/library/168k2ah5.aspx

Visual Studio only builds one module per assembly, consisting of all of the
C# source code files and embedded resources within a single project. Unless
you built the assembly using managed C++ or the C# command-line compiler,
and used the Assembly Linker (AL.exe) then it will only have one module.

--
Dave Sexton

"Fabio Z" <zn*******@virgilio.itwrote in message
news:uY**************@TK2MSFTNGP03.phx.gbl...
Hi all!

I'd like to get the list of loaded modules by my assembly, like VS does at
debug time in the loaded modules window.
I load some assembly via Assembly.LoadFile() and I'd like to retrieve
these assemblies in some way.

I tryied with

System.Reflection.Assembly.GetEntryAssembly().GetL oadedModules()

but all I get is the assembly of the main exe :(

Some help?

Thanks

Dec 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bo Peng | last post by:
Dear list, I am writing a Python extension module that needs a way to expose pieces of a big C array to python. Currently, I am using NumPy like the following: PyObject* res =...
4
by: Bruce | last post by:
I thought that I had read somewhere before about a limit to the number of DLL's that could be loaded by a 32 bit application when it is run on Windows 98/ME operating systems. But I can't seem...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
4
by: insomniux | last post by:
Hi, I need to check if a kernel module is loaded on a linux box.My linux version 2.6. If the module is not loaded, I need to load it. Should I do that with a system command (modprobe) or is there...
1
by: mhearne808 | last post by:
I have a question about how dynamically loaded C++ modules work, which I will phrase as a hypothetical scenario involving the Numeric module. Please understand that I don't really care about...
6
by: usenet1 | last post by:
I'm a newbie with hopefully an easy question. I'm trying to write some "C" code that will run a python script that can in turn call some "C" functions. However I'm having a problem getting...
3
by: geevaa | last post by:
Hi group, PHP Warning: Module 'readline' already loaded in Unknown on line 0 what this warning means? please help me by explaining
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
2
by: Jeff | last post by:
Hi I'm trying to achieve a scenario where I have c# files that are compiled dynamically, the assemblies are then loaded in a different AppDomain, I call a simple method from the object, and then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.