| Reflection problem passing args (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi all, i'm having a problem passing parameters per reflection from a parent class to a dynamically loaded child DLL. Please see the attached text file for a detailed description. Any notes and tips on passing structures and classes to reflected child assembly DLLs would be great. Regards, Micah |
|
| Reflection problem (3 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi ! I have stumbled a very weird problem with reflection. I want my application to support addins (addons or plugins however it is called). For demonstration purposes, I created three Visual Studio.Net projects. 1) A class library, which provides interfaces and types used by the addin AND the application: .... public interface IAddIn { void OnLoading(IApplication application); void OnUnloading();... |
|
| Bug in Microsoft Jitter that emits buggy Machine Code! (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Microsoft C# compiler is emitting different machine code for same if condition of which one is not correct. I had included the code for your reference. I don't know whether it is repeatable. But I had cut and pasted the code with the disassembly from the IDE. Here is the code snippet that works the if block is executed. int iMajor 6000; int iMinor 0; if (iMajor ! 0 || iMinor ! 0) { Console.WriteLi... |
|
| *** CLR/Framework Bug? *** (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Microsoft Can you confirm the following bug in the .NET CLR? Why does specifying the full assembly name in the GetType() method call below cause a GPF at application shutdown? Note that I do understand that the full assembly name is not required in this sample and also that if I use typeof( MainApp ) instead of Type.GetType( ...) solves the problem. However, in my actual scenario I am trying to ge... |
|
| Somebody please help me! (3 replies) |
| microsoft.public.dotnet.framework.clr |
| I am writing an application in c# to enumerate and control threads running in other managed applications. The System.Diagnostics.Process class lets me enumerate these threads (as instances of ProcessThread class) through the Threads property. However, there is no support for suspending these threads in the ProcessThread class. Can somebody please tell me how to suspend these threads, and is there ... |
|
| AppDomain.ProcessExit and AppDomain.DomainUnload (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi! I'm trying to use the AppDomain.ProcessExit and AppDomain.DomainUnload delegates to make some finalization stuff into my code. I'm writing a C# class that needs to update some perfomance counters when de AppDomain is unloaded. Using AppDomain.DomainUnload I wasn't sucessfull. Using AppDomain.ProcessExit I was almost sucessfull, because if the test console application exits correctly, the deleg... |
|
| The constructor to deserialize an object was not found. (5 replies) |
| microsoft.public.dotnet.framework.clr |
| HI, In attempting to deserialize an object I receive a SystemException with the message "The constructor to deserialize an object of type RmtCtrl.DeviceMapping was not found." My class DeviceMapping is derived from System.Collections.Specialized.NameObjectCollectionBase If I change the class (which simply provides a type safe wrapper) to be a "hasa" that is it has a member of type HashTable is wor... |
|
| uploading files to web server using asp.net (3 replies) |
| microsoft.public.dotnet.framework.clr |
| I need to provide functionality to upload files to the web srvr and since I'm sure it's been implemented before i'd not like to reinvent the wheels as they were !! any pointers to code / implementations would be very helpful i'm not looking for a commercial library/component TIA |
|
| Byte array parameters (7 replies) |
| microsoft.public.dotnet.framework.clr |
| I'm currently developing some code which extracts information from a byte stream at varying offsets. At present I'm finding the offset and size I need and then creating a new byte array and calling a constructor something like the following (which is nested inside another loop): // heap my large byte array // int offset offset in heap // int ss size of data // int count number of items for (int i ... |
|
| Unable to load an assembly into appdomain err File or one of its dependencies not found.. (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I want to create a seperate application domain into which i load an assembly by passing the byte array after loading it from the folder where the assembly resides...but i get an error "File or one of its dependencies not found"..i only load pass the byte array for the .dll file and not the ..pdb file. anyone who came across such problem... Rgds |
|
| System.Type GetMethods() return order : Can I rely on the array order? (6 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, When calling the GetMethods method on a System.Type, in practice I note that in the object array returned from GetMethods, the method entries themselves appear in the same order that they appear in the source file for the class. This matches my requirement which is to discover and call the methods in the order they appear in the source file. My question is : Can I rely on GetMethods to always ... |
|
| Thread ID (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there a way to identify the thread an event is called on besides Thread.CurrentThread.Name which is blank? I would like to know the thread id number so I can verify some issues regarding my event being called upon by more than one thread. Thanks, Dave |
|
| Assembly.LoadFrom path resoloution (6 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I am trying to load a dll using Assembly.LoadFrom(x.dll). This in turns should load all the assemblies referenced by x.dll. Fine. Now if one of the refernced assemblies (weakly named), happens to share the same name as an assembly referenced by the running app, then the one refernced by the running app gets loaded (the order in which clr looks for assemblies). Fine. However, I thought that I g... |
|
| C# function similar to C stdlib time(NULL)? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I'm working on some stuff that we are changing from a unix back end to a windows.NET backend. Some of the infrastructure is still unix and I need to get the epoch/unix time (number of seconds since 1/1/70) in a c# program. Now, I can do some wizardry and convert ticks or something, but I was hoping that there was already some functionality for this sort of thing, which seems like it would be prett... |
|
| Run time creation of Object (2 replies) |
| microsoft.public.dotnet.framework.clr |
| How do I Create a Object at Run time in .NET Just like in VB Dim obj as Object Set obj createobject/new ProgId/ClsId Can we do it with Assembly.CreateInstance or Activator.CreateInstance without declaring types? Any examples please ? Best Regards Manish |
|