Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet clr > september 2004

Runtime Conformance Testing
Posted by joelr NO[at]SPAM bruce.csse.monash.edu.au at 9/28/2004 6:34:32 AM
Hi people, Can someone point me to some libraries or techniques for conducting aspect oriented programming (say via a weaver tool) that allows one IL (Intermediate Language) tool (the aforementioned weaver) to draw out certain aspects (i.e. boolean conditions of variables) of say a program wr...more >>


Reflection.Emit
Posted by John.Arthur NO[at]SPAM gmail.com at 9/27/2004 3:09:42 AM
Hi, I am reading about Reflection.Emit and I can't really imagine a real situation where I can use this. Can someone give me an example that can't be done without Reflection or an example of something that If done with Reflection.Emit will be a lot faster or something sensible. I will really ...more >>

Problems using clr profiling API
Posted by slx at 9/27/2004 2:11:02 AM
I'm using the clr profiling API to monitor function enter and leave events. For some applications I'm profiling the number of enter and leave events does not match which makes it impossible to maintain a shadow stack. All events are synchronized using a critical section. Any ideas? Than...more >>

Extending the debugger
Posted by kh at 9/25/2004 4:19:02 AM
Hi. I have written a utility that can accept a DataSet and allow the user to browse the tables and data within it. I thought it would be nice to integrate this with the VSNET debugger so that the user can browse a DataSet whilst in break mode. I haven't done anything like this before so ca...more >>

Handling managed events from unmanaged class
Posted by Alex at 9/24/2004 2:07:04 PM
I have a C# class MyClass which implements events and delegates. I am consuming this class from unmanaged class using gcroot template as follows: gcroot<MyClass*> m_pMyClass ; My question is how can I instantiate delegates, event handlers and subscribe to events from unmanaged class using ...more >>

Call to Dispose method causes compilation error
Posted by Dale at 9/24/2004 6:37:04 AM
Can anyone explain why the call to Dispose method in the following code caused the "error C2660: 'MyDialog::Dispose' : function does not take 0 arguments"? //////////////////////////////////// MyDialog* dlg = new MyDialog() ; if(dlg->ShowDialog() == DialogResult::OK ) { .... } dlg->...more >>

Casting gcroot pointer
Posted by Dale at 9/23/2004 7:37:04 AM
I have a C# class MyClass which implements two interfaces as follows: public class MyClass: Interface1, Interface2 .... I am consuming this class from unmanaged class using gcroot template as follows: gcroot<Interface1*> m_pMyInt1 ; My question how can I cast m_pMyInt pointer to Inter...more >>

Embed interop DLL file in executable
Posted by Guogang at 9/17/2004 4:20:36 PM
I am tring to create a single .exe file that user can download. However, this program need reference to COM object, thus need a interop dll file like this: Interop.CAPICOM.dll. Is there a way to embed this DLL file and the exe file into one single executable (like using a static link in the C+...more >>



Passing constants to functions + boxing
Posted by oleg stepanov at 9/17/2004 6:37:36 AM
Hi, I got a bit stuck with the Debug API. I have the following task: imagine there's a simple function static object Foo( object value ) { return value; } in debuggee process and I want to evaluate Foo(12). Can anyone tell me step by step how can I do that? Thanks! -- Oleg St...more >>

cannot set property value in a structure using Me
Posted by Sankar Nemani at 9/16/2004 5:14:05 PM
Does any one know why the following code works the way? and in C# it works in a different way what is the meaning of "Me" in VB.NET and why is it different than in C# Structure Test Private mName As String Property Name() As String Get Return Me.mName ...more >>

about Application to link resourcese file !Please help me
Posted by Ricky Liu at 9/15/2004 2:37:14 PM
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 ...more >>

Typed Datasets, CLS compliant
Posted by Murray Foxcroft at 9/15/2004 10:59:50 AM
Hi there, I have found out the hard way that Typed Datasets are not CLS compliant. Surely they should be as they are pretty much collections of Common Types. Has anyone else found this problem and how did you solve it? I use typed datasets as parameters in my business logic. Thanks in ...more >>

IMetaDataImport System.ExecutionEngineException problem
Posted by Sacha Faust at 9/15/2004 12:16:57 AM
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...more >>

SetEnterLeaveFunctionHooks and JITCompilationStarted
Posted by Qj Zhang at 9/14/2004 12:24:12 PM
I use SetEnterLeaveFunctionHooks profiling API to catch all method calls. For each method call, I can find class name, method name, parameter type and return type. I am wondering if it is possible to catch parameter values and return value. Use JITCompilationStarted, it is possible to catch pa...more >>

Creating a Singleton that is a cross AppDomain Singleton
Posted by kevin_ferron NO[at]SPAM hotmail.com at 9/14/2004 8:00:38 AM
Creating a Singleton that is a cross AppDomain Singleton I'd like to thank Eric Gunnerson for his article on AppDomains and Dynamic Loading (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp) for it really helped me out with the issue i was having...more >>

Renaming typedefs using the unmanaged reflection API (is it possib
Posted by Nadav at 9/11/2004 11:39:01 AM
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 t...more >>

Creating an appdomain
Posted by Alok at 9/10/2004 4:46:08 PM
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 i...more >>

Assembly loading
Posted by Kjetil Kristoffer Solberg at 9/10/2004 9:03:55 AM
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 assemblie...more >>

Application Domains
Posted by rb531 at 9/9/2004 3:17:02 PM
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,...more >>

Statically referenced assemblies are not loaded at startup ... Why
Posted by Bob at 9/9/2004 2:11:02 PM
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 respe...more >>

Dynamiclly loaded assemblies and IsDefined
Posted by Patrik Löwendahl [C# MVP] at 9/9/2004 1:43:04 PM
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 ...more >>

Public Enum Type Declaration (How to Question)
Posted by Jay Pondy at 9/9/2004 5:57:05 AM
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 Publ...more >>

Problems with ICorDebugManagedCallback::Breakpoint(...)
Posted by Jeroen Vos at 9/7/2004 11:08:18 AM
I'm trying to write a debugger in C# using COM wrappers for the debugging API. I hit quite a few bumps in the road, i solved all of them till now. The breakpoint callback does not seem to be called on a set breakpoint (the debuggee does break). I found the same question in the newsgroups that wa...more >>

Reflection and (un)loading assemblies?
Posted by Mario Goebbels at 9/6/2004 3:01:34 PM
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 s...more >>

std console output for windows based app (???)
Posted by Nadav at 9/6/2004 12:53:07 AM
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...more >>

ICorProfilerInfo::SetFunctionReJIT causes deadlock
Posted by Marc Eaddy at 9/5/2004 1:19:05 AM
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, t...more >>

Calling a .NET assembly through PURE UNMANAGED code
Posted by Nadav at 9/5/2004 12:55:01 AM
Hi, I am tiring to load an assembly from memory ( e.g. System.Reflection.Assembly.Load( byte[] ), this works fine through managed and mixed code. NOW, I am tiring to achieve the same thing through PURE UNMANAGED code, I can't use com or com interop, does some one have an idea how to achie...more >>

Debugger API
Posted by Aniskevich Sergey via .NET 247 at 9/3/2004 2:58:52 AM
I am have problem with Debugging API under C# (Framework 2.0). A am run Debugged process as follows: int size; GetCORVersion(null, 0, out size); Debug.Assert(size > 0); StringBuilder sb = new StringBuilder(size); int hr = GetCORVersion(sb, sb.C...more >>

kb837318
Posted by jonny at 9/2/2004 10:25:49 AM
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 a...more >>

Dynamically creating satellite assemblies with embedded resources
Posted by Notre Poubelle at 9/1/2004 3:55:02 PM
I'd like to create a satellite assembly dynamically, embedding rather than linking resource files. I know I can use the assembly linker (al.exe) to embed a .resources file, but I'd like to do it programmatically, using something like the AssemblyBuilder class. This is the same question that...more >>

Need help to detect code changes in .net assemblies
Posted by H.B at 9/1/2004 11:30:16 AM
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...more >>

Type Resolution blues - TypeDescriptor.GetConverter fails for external assembly
Posted by Jürgen Weiss at 9/1/2004 10:45:21 AM
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...more >>


DevelopmentNow Blog