473,657 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Managed PE manipulation ( Managed Assembly load procedure )

Hi All,

- I am working on a tool that manipulate managed assemblies, some of the
functionality provided by the tool require manipulating the metadata sections
of the managed assembly in a way it could still be loaded by the consuming
application ( concerning the manipulated assembly is a DLL ), The tool uses
the unmanaged profiling API to monitor the application being executed ( and
actively effect it ), for each assembly being loaded an AssemblyLoadSta rted &
AssemblyLoadFin ished are being called. for the manipulated assembly none of
these events is called, an 'Object reference is set to null' exception is
being thrown when trying to instantiate one of the classes defined in the
manipulated assembly... I wonder what parameters are extracted from a managed
assembly by the .NET framework during the loading process ( and NOT through
class instantiation and method calls of that assembly ), In other words: what
is the process that take place from the point where the assembly file is
being opened ( e.g. CreateFileW ) to the point where the profiler
AssemblyLoadFin ished callback is being called? what parts of metadata of the
assembly being loaded is being used by the .NET Framework? What metadata
properties are required so the assembly would load successfully ( e.g.
NameSpace, PublicKey, version, … )? My guess is that I am manipulating some
variables that prevent the assembly from being loaded, the metadata
manipulation involve merging large chunks of metadata from other assemblies
so it is hard to pinpoint what exactly causes this phenomenon…
- SOooo, any pointers samples or explanations of the metadata properties
required during managed assembly load ( the process that take place from
assembly file creation until AssemblyLoadFin ished execution ) would be
appreciated.

--
Nadav
http://www.ddevel.com
Nov 17 '05 #1
0 1254

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

Similar topics

0
1134
by: Capilano | last post by:
I have a Class "A"(C++) which is compiled into an essembly with /clr option. It is NOT using managed DATA, no __gc or __value. My second Class "B"(C ++) is a fully managed wrapper for class "A", which is in its own assembly. This will allow me to use Class A from VB or C#. I have two web applications(VB based), X and Y. Problem 1:
22
528
by: Alper AKCAYOZ | last post by:
Hello Esteemed Developers and Experts, I have been using Microsoft Visual C++ .NET for 1 year. During this time, I have searhed some topics over internets. Most of the topics about .NET is related to C# and Visual Basic .NET. There are less documents about Visual C++ .NET or Managed C++. I wonder the reasons of below questions: 1) Is C# more powerful than Managed C++ and Visual C++ .NET? 2) Is Microsoft intending to support C# and...
2
3233
by: mats | last post by:
Hi! This is a quite involved question concerning two dll's that are consumed from a console application. The first dll is called base.dll and is compiled in mixed mode (managed and unmanaged C++). One native class and one managed interface is declared and defined in base dll. The native class is exported via declspec(dllexport) and the managed interface via the public keyword. The managed interface has one property which returns a pointer...
2
2135
by: NGM | last post by:
Hello All I have a unmanaged C++ DLL, which has been wrapped up with a manged C++ DLL. When i refer to this managed DLL in Windows form based applications it works out fine. But when i refer to the the same managed C++ DLL in ASP.Net application. ngmujumdar@hotmail.com/ amar_a_k@yahhoo.co NG
5
1880
by: Jim Bancroft | last post by:
New to ASP.Net over here, so apologies if this is a basic question-- I'm using VB .Net to build a managed dll, which I then use in some aspx files. Works fine, except every time I recompile I have to copy the dll into the "bin" directory off my root web, otherwise ASP.Net won't find it. I've added my components the GAC (using gacutil), but that didn't seem to make a difference-- "bin" or bust, I'm getting. How can I use my dll without...
7
3142
by: Andreas Reiff | last post by:
Hey! I have a managed c++ app (actually, the app is mixed managed/unmanaged, but this happens in the managed part) that dynamically generates some program in c# (with CSharpCodeProvider). The problem now is that somehow I get runtime errors when trying to pass a function (via delegates) into the c# code in order to make c# call back that function. The message box says: "An unhandled exeption of type 'System.ArgumentException' occurred...
2
2027
by: Chen Zhuo | last post by:
Hi all experts, We are having a problem with the exact time when a C# dll gets loaded in managed C++. The scenario is like: In managed.cpp: #using MyCSharp.dll
0
1462
by: Morgan Cheng | last post by:
I have one webservice written in MC++, which uses another native DLL deployed in %webservice_install_dir%\bin folder. The API invocation between MC++ and native C++ looks seamless. The compilation is fine. However, after deployment, each request fails with "The specified module cound not found" exception. It turns out to be the Managed assembly is copied to someplace at runtime. In my machine, it is "C:\WINDOWS\Microsoft.NET\Framework...
0
910
by: DiegoBernini | last post by:
I have two assembly written in Managed C++ (VS2005) CdWrapperApi.dll, "contains" namespace CDWrapperApi { ... public interface class ICDProxy { public:
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.