| Side effect between System.Diagnostics.Trace and System.Diagnostics.Debug (11 replies) |
| microsoft.public.dotnet.framework.clr |
| Hello, Is there a Bug? The Trace and Debug Listeners are separated and the Trace methods and Debug methods can be "activated" independently so they seems to be independant but: The Trace.Indent() has an impact on Debug output indentation. The Debug.Indent() has an impact on Trace output indentation. The Indentation (which generally present the call stack) is not private to a Thread but general for... |
|
| HOWTO Cancelling keyevents in ComboBox (8 replies) |
| microsoft.public.dotnet.framework.clr |
| Hello, I'm getting crazy of this. In VB it used to be simple KeyAscii 0... In .NET I haven't find a way to do it. I virtually tried everything but with no success. Any ideas on how to solve. Or better, I just want an AutoComplete combobox style. Thanks Stefan de Vogelaere |
|
| Memory leak when calling ServicedComponent (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I notice a severe memory leak when I call a serviced component from a simple c# application. Here is the code : * COMPONENT RUNNING UNDER COM namespace TestMsmq { using System; using System.Messaging; using System.EnterpriseServices; [Transaction(TransactionOption.Required)] [EventTrackingEnabled(true)] [JustInTimeActivation(true)] public class MsmqTx : ServicedComponent { public void GetMessage(s... |
|
| Thread Identity (10 replies) |
| microsoft.public.dotnet.framework.clr |
| In C , you can get ThreadID of a running thread. I wrote the ID into a log file for a multithreading application, so I can relate log entries by thread id. But I couldn't find how to do it in .NET. Is there a way to get a thread's identity in .NET? Thanks in advance Ming |
|
| Timer.Elapsed does not work? (5 replies) |
| microsoft.public.dotnet.framework.clr |
| I have the following code, but always give me compiled error :timer.cs(9,3): error CS0029: Cannot implicitly convert type 'System.EventHandler' to 'System.Timers.ElapsedEventHandler' (I am using Beta2SDK) it does not help even if i do this tm.Elapsed ( System.Timers.ElapsedEventHandler)new EventHandler(Timer Clicked); using System; using System.Timers; public class testtimer { static void Main() {... |
|
| Language support for multi-threading (24 replies) |
| microsoft.public.dotnet.framework.clr |
| Some compilers for C and Fortran have built in support for multi threading. All you have to do is mark a block (i.e. a loop) as multi threaded, and the compiler takes care of the rest. Things like thread management are taken care of for you. (I believe the extension was called MPI, but don't quote me on that.) Do you think the core .Net languages would benefit from such extensions? Jonathan Allen |
|
| Help with some IL (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi there, I wanted to find out what happens when I call SqlDataAdapter.Dispose(). So, I IL DASM'd it, and got: ..method family hidebysig virtual instance void Dispose(bool disposing) cil managed { // Code size 39 (0x27) .maxstack 8 IL 0000: ldarg.1 IL 0001: brfalse.s IL 001f IL 0003: ldarg.0 IL 0004: ldnull IL 0005: stfld class System.Data.SqlClient.SqlCommand System.Data.SqlClient.SqlDataAdapter:... |
|
| .net hosting and clr (4 replies) |
| microsoft.public.dotnet.framework.clr |
| What is the counterpart of microsoft transaction server (mts) or COM Services in .net framework. Does CLR takes care of componet hosting as mts used to do. Who takes care of services like component instantiation, reference count, object references, memory management, connection pooling and most important one scalability for bigger environment? Any help is appreciated. |
|
| How to generate method definition in code at runtime? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi. I have Control, Designer and Serializer for it. I need to generate event handler definition in class code which uses my Control and attach this method to some event within InitializeComponent method. The same do MenuDesigner when you doubleclick on MenuItem or when you doubleclick on any event within Properties Window. I am generating code like this : myMenuItem1.Click new System.EventHandler(... |
|
| ArrayList type... (3 replies) |
| microsoft.public.dotnet.framework.clr |
| The type ArrayList is serializable according to the documentation. But I am not able to get the ISerializable interface of this type so I can serialize the type and later on re create the object out of that? Any idea what the issue is? Klaus (Director of Engineering, Thinq Learning Solutions) |
|
| Is NULL not supported for Integer? (4 replies) |
| microsoft.public.dotnet.framework.clr |
| I tried to write a data access component that writes a record with an optional foreign key, which is defined as an int, allowing NULL. The method I wrote has both String and int parameters. Setting the String parameters to null is no problem, because String is a class. But how can I pass a NULL value for the int parameter, which is a structure (System.Int32)? Do the .NET architects not understand ... |
|
| Classes in memory (4 replies) |
| microsoft.public.dotnet.framework.clr |
| My understanding of the way the class loader in the CLR handles a class is, when a class is referenced for the first time the class loader loads the class and initializes the STATIC members. However, what happens when the loaded class contains one to many nested (helper) classes ? I haven't seen this topic address before, but I believe that the nested classes won't be loaded into memory until they... |
|