[Mono-dev] Strange .ctor() behaviour

2006-03-01 Thread vijaya raghava mutharaju
Hi, Using Mono.Cecil, I inserted custom attributes into an assembly. Some of the classes in it are Clock, DisplayTime, Observer,. The attribute is a string of type MyAttribute. Now after inserting a value and disassembling the assembly, instead of a statement like the following:

Re: [Mono-dev] Unloading an Assembly

2006-03-01 Thread vijaya raghava mutharaju
Hi, The issue is resolved. The mistake I have been doing was, though I loaded the assembly into another AppDomain, I was referencing(using Reflection) it in the CurrentDomain. Also I used MarshalByRefObject in a wrong manner. I thought it should be used by the Assembly Iam

Re: [Mono-dev] Unloading an Assembly

2006-02-27 Thread vijaya raghava mutharaju
Hi, I was going through an MSDN article by Eric Gunnerson. He says that if we want the runtime to probe for the assembly in any other location then we should setup the ApplicationBase property of AppDomainSetup class.By default, runtime will lock that assembly. So we have to set the

Re: [Mono-dev] Unloading an Assembly

2006-02-26 Thread vijaya raghava mutharaju
Hi, Zoltan - That bug is different. There are similarities. Mine is related to communication between different AppDomains. My application is as follows: 1) Domain1 - Loading an assembly - SampleApplication.exe From next statement, the current domain starts. CurrentDomain - Using Reflection on

Re: [Mono-dev] Unloading an Assembly

2006-02-26 Thread vijaya raghava mutharaju
Hi, The assembly file should be in the current directory itself. It cannot be in any other directory. If it is, then it should be either strong named or put in GAC. There is another problem. When Iam trying to use Mono.Cecil for Step - 2 described above, Iam getting an exception

[Mono-dev] Unloading an Assembly

2006-02-24 Thread vijaya raghava mutharaju
Hello, I have created an AppDomain to load an Assembly, used Reflection on it and then Unloaded the AppDomain. Is there any Remoting Issues associated with Unloading of an Assembly. Iam getting exceptions. AppDomain newDomain = AppDomain.CreateDomain(NewDoamin); Assembly myAssembly =

[Mono-dev] Adding Custom Attributes to Assembly

2006-02-21 Thread vijaya raghava mutharaju
Hello, I want to add custom attributes to an existing assembly. I want to do the following steps. 1) Refer the class MyAttribute which is in the assembly MyAssembly.exe, so that I can import into the current assembly - AnotherAssembly.exe 2) Add this attribute (MyAttribute constructor with

[Mono-dev] Re: Adding Custom Attributes to Assembly

2006-02-21 Thread vijaya raghava mutharaju
code is completely off target. Iam new to Cecil. Thank you. On 2/21/06, vijaya raghava mutharaju [EMAIL PROTECTED] wrote: Hello, I want to add custom attributes to an existing assembly. I want to do the following steps. 1) Refer the class MyAttribute which is in the assembly MyAssembly.exe

[Mono-dev] Changing TypeDef table

2006-02-19 Thread vijaya raghava mutharaju
Hi, Can we directly change(add) the entries in the metadata tables without adding any entity(like a class) into the assembly (using Mono.Cecil). Maybe just like a comment into the table. Please, can you explain the steps for doing it or if it is not possible then the steps to do in normal way

[Mono-dev] Assembly Mono.Cecil not found while compiling

2006-02-17 Thread vijaya raghava mutharaju
Hi, I installed Mono and Cecil. Tried to compile a sample application using Mono.Cecil. But the mcs compiler is giving error messages that it cannot find Mono.Cecil. I installed Mono.Cecil.dll into the GAC successfully. Generated a key and recompiled Mono.Cecil.dll.sources with the

[Mono-dev] Help on Cecil

2006-02-04 Thread vijaya raghava mutharaju
Hi, Iam new to Mono and Cecil. I want to modify an exiting .NET assembly and came to know that with Cecil I can do that. But Iam unable to find proper tutorials and documentation of them. There is just a list of Classes present in Mono and their description available in the Cecil site