microsoft.public.dotnet.framework.clr Archive - September 2004
Post a message to this list
Messages
Page: 12
Need help to detect code changes in .net assemblies (5 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I want to find out a way to distinguish between modified dlls (meaning there has been a code / resource change) and unmodified dlls in of a build. Because of the MVID and version info, the assembly gets modified each time I rebuild the project(even without modifying anything in the code). But I want to find out a way to detect whether the dll actually changed or not. One possible way to approa...
std console output for windows based app (?) (2 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, (*) I am writing an unmanaged application that hosts managed assemblies ( e.g. CorBindToRuntimeEx ) my app may host window based PEs and Console based PEs, the host is a single executable and should be able to host the two types of the PEs. (*) When Hosting a consol based app ( managed ) I can't see the std output generated by the app. (*) The host is compiled as a Win32 project (windows based...
ICorProfilerInfo::SetFunctionReJIT causes deadlock (5 replies, VIP)
microsoft.public.dotnet.framework.clr
I've implemented a CLR Profiler using ICorProfilerCallback and the Profiler API. I'm calling ICorProfilerInfo::SetFunctionReJIT() from a separate thread. However, ICorProfilerCallback::JITCompilationStarted() doesn't get called. Instead, when the function that should be ReJIT'd is called, the CLR Runtime hangs. You can find a great description of the problem from here: http://groups.google.com/gro...
Renaming typedefs using the unmanaged reflection API (is it possib (4 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I am using the unmanaged reflection API ( e.g. IMetaDataImport, IMetaDataEmit, â ) and I wonderâ . I couldnâ t find a way renaming a Field/Method nameâ How could I do that? Concerning fields, I have tried to delete the filed and re create the field with a different name; however the runtime doesnâ t recognize the new field upon executionâ How can I rename a method/field name??? is it possible ...
Iterating through Global Assembly Cache (GAC) ... (7 replies, VIP)
microsoft.public.dotnet.framework.clr
Can anyone explain whether I can programmatically iterate through Global Assembly Cache (GAC) and discover the assemblies that support the certain interface? I know that I can discover the assemblies that support the certain interface located in specified (let say plug in) directory, but I can't find any way to iterate through GAC. Please help. Thanks.
Public Enum Type Declaration (How to Question) (3 replies, VIP)
microsoft.public.dotnet.framework.clr
How can I declare a public enumeration that can be used in MORE than one class as a property type? When I declare the enumeration as public in a module and then attempt to use it as property type I receive the following message: 'MyProperty' cannot expose a Friend type outside of the Public class 'MyClass' If this is not possible are there any suggestions for a work around?
kb837318 (3 replies)
microsoft.public.dotnet.framework.clr
I wonder as to whether Microsoft will ever fix the bug described in http://support.microsoft.com/default.aspx?scid kb;en us;837318 . The problem is that I cannot use Win32 threads in an ASP .NET Web Service, because Win32 threads are always unmanaged and seem to be created in a default IIS application domain, while a web service runs in its own domain. The article says that "you may notice the pro...
Statically referenced assemblies are not loaded at startup ... Why (2 replies, VIP)
microsoft.public.dotnet.framework.clr
have .NET component Definitions.dll which contains only definition of interface IComm. I also have components which contain implementations of that interafce. Let say components are Comp1.dll, Comp2.dll and Comp3.dll. These components contain 3 different classes Class1, Class2 and Class3 respectively. Each of these classes is different implementation of IComm interface. I also have an app which st...
Reflection and (un)loading assemblies? (2 replies)
microsoft.public.dotnet.framework.clr
Hi! When I'm loading an assembly to reflect over it's types without ever instancing a type in it, and then let the GC collect the related Assembly object, will it be unloaded or stay in memory until the application ends? The scenario is that one of my projects reflects over every DLL in a subfolder whether it is a plugin or not, preferably I wouldn't want to have DLLs loaded during that process wh...
Managed EXE DLL Injection (3 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I am writing some kind of an encryptor for.NET assemblies, This require me: A. To encrypt the IL code ( done successfully ) B. To enable transparent means of decrypting the IL code on run time in a way that the encrypted DLL will stay independent. Concerning the latter issue, to achieve custom functionality upon EXE startup I am trying to inject a DLL to an existing PE image, this is done by a...
Assembly loading (2 replies)
microsoft.public.dotnet.framework.clr
I have a question regarding assembly loading.Basically I am asking whether or not the assembly loader can load multiple versions of the same assembly if: 1. The assemblies are strongly named and lies in the GAC 2. The assemblies are strongly named and lies outside the GAC 3. The assemblies are not signed and loaded using the Load method with a partial qualified reference(incomplete four part name)...
about Application to link resourcese file !Please help me (2 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi all: I have some trouble that is I use the al.exe to link a resources to a Application, but it's failed. If i debug in Vs.net the Application would be work well with the resources.I want to change the language when the Application is running,but need not to rebuid. I have tow resources of language is strings.pt br.resx(english) and strings.resx(chinese) if this resources is building with the Ap...
Creating an appdomain (3 replies)
microsoft.public.dotnet.framework.clr
I want to execute two instances of a c# windows app exe in two different domains. If I simply execute the exe twice, the windows form does not seem to be showing twice as i would expect. However I think it should be possible if I execute the assembly in separate domains. Please let me know if it is possible. And if not then why its not possible. Thanks. Alok.
get Relative Virtual Address (RVA) of a FieldInfo (4 replies, VIP)
microsoft.public.dotnet.framework.clr
Hello, My question is related handling assemblies and IL files. I am trying to find out a way to get the RVA of a field in an assembly and would appreciate any help. Here is more details: I load an assembly and get a Module. Then using GetFields(), I get the list of static fields in that Module. The items of this list are of type FiledInfo. Now the question is, when the "Attributes" property of on...
IMetaDataImport System.ExecutionEngineException problem (3 replies)
microsoft.public.dotnet.framework.clr
I've been defining the IMetaDataImport interface in C# and so far I got all the Enum* method working. I'm having a hard time with all the Get*Props methods like GetFieldProps, GetParamProps .... My issue is with the void const **ppValue parameters. I've tried many solution to get theses calls to work and it always fails on that parameter and I get an System.ExecutionEngineException throwned. Anyon...
Bug in System.ComponentModel.PropertyDescriptorCollection.RemoveAt (2 replies, VIP)
microsoft.public.dotnet.framework.clr
The following program reproduces a bug in System.ComponentModel.PropertyDescriptorCollection.RemoveAt: Removing any but the last item of the collection generates a System.ArgumentException. Start code to reproduce bug pre namespace PropertyDescriptorCollectionBug { class HasAProperty { public int Test1 { get { return 1; } } public int Test2 { get { return 2; } } static void Main(string[] args) { S...
Assembly.Load() with alternate subdirectory for other assemblies which have dependencies (3 replies, VIP)
microsoft.public.dotnet.framework.clr
I have a question about dependent assemblies of asseblies that are loaded with Assembly.Load(). I have a directory structure with the following format: C:\temp\ myApp.exe OurCompany.Common.dll (version 1.5.0.0 with common routines, strongly signed) C:\temp\ExternalLibrary ExternalLibrary.dll OurCompany.Common.dll (version 1.2.0.0 with common routines, strongly signed) From "myApp.exe", the followi...
Significant delay while unloading temporary AppDomain (2 replies, VIP)
microsoft.public.dotnet.framework.clr
I dynamically load assemblies to discover whether they support certain interface or not. Then I unload this temporary domain by calling AppDomain.Unload method. I don't understand why but this call cause significant delay up to 30 seconds. Can anyone explain why AppDomain.Unload delays execution of the problem for so long. My app is former VC 6.0 application migrated to MC . The class which actual...
Debugger fails under unit test runner (3 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I have a custom CLR debugger which uses standard CLR Debug API. Most of the time is works perfectly, but when it's run under unit test runner a DllNotFoundException is thrown. The problem seems to arise in CordbRCEventThread::FlushQueuedEvents when instance of IJWNOADThunk is created (see full stack below). Does anyone have idea what might be the problem? I figured out that there's article in ...
Out of memory exception: Assemly.CreateInstance, Help me out (3 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I have been facing a out of memory exception with Assembly.CreateInstance, I am using Assemly.CreateInstance in a asp.net program to instantiate a particluar class, gradually the memory for aspnet wp.exe grows...and ultimately i get out of memory exception at the point: Assembly.CreateInstance Please help me out, You can mail me at: narasimha.gm@gmail.com
How to get caller's "this"? (7 replies, VIP)
microsoft.public.dotnet.framework.clr
Given this code class A { void Foo() { B b new B(); b.Bar(); } } class B { void Bar() { ... } } In the body of the Bar() method, how can it get a reference to the instance of the "A" object that called it? I am not interested in the method information or type information of the object... I need a reference to the actual instance of "A". It must be possible with reflection or diagnostics, but I can...
CLR Hosting - exception handling? (3 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi I'm hosting the CLR in my win32 unmanaged application, it's all working really well however I have one issue left to resolve. When a managed exception is raised, it is propagated to the win32 host as an ole exception. Is there a way to get access to the managed exception object (I want to get access to the stack trace)? It seems the com interop is changing the way unhandled exceptions are dealt...
Dynamiclly loaded assemblies and IsDefined (5 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I'm running laps around this, need some fresh input. I'm writing a component that runs in asp.net 1.1 (no sp) which dynamically loads assemblies from a shared store. Each of theese assemblies contains one or types marked with a custom attribute. When iterating and checking theese types IsDefined won't return true even for types where the attribute is present. Retrieving the attributes and manu...
Type Resolution blues - TypeDescriptor.GetConverter fails for external assembly (4 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi folks, I have a problem with obtaining the TypeConverter for a Control which is defined in an external assembly. The problem is that TypeDescriptor.GetConverter() fails to retrieve the proper converter instance, whereas creating the converter manually by inspecting the TypeConverter attribute of the property and instantiating the instance through its construcor works fine. To make it even weird...
Application Domains (11 replies, VIP)
microsoft.public.dotnet.framework.clr
I have a question regarding app domains. I have a Windows Forms .NET application. If I open two instances of my application, will they get loaded into two application domains in the same process or two processes will be created for the two instances? Thank you,
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification