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 > april 2007

The Interlocked on the Edge of Forever
Posted by Chris Mullins [MVP] at 4/30/2007 1:13:47 PM
I've got a quick question that's been bugging me for a long, long time: Let's say I've got a member variable (in a heavily threaded app): private int _firstTime = 0; To make changes to this is easy enough: InterlockedExchange(ref _firstTime, 1); .... or I can use the InterlockedCompa...more >>


Converting MSIL to C# Source Code
Posted by gangelo at 4/26/2007 7:00:01 AM
I am trying to get some direction/documentation on how to convert MSIL to C# source code - like Reflector. Is there any documentation out there on this? ...more >>

Class not registered Error please help
Posted by Jijo at 4/22/2007 10:58:01 PM
Hi i am facing problem with interop dlls that we are using for the communication to the COM PORT. we have one application that works fine with one windows server 2003 machine. One of my dlls is using two interop dlls( Interop.AXmscomlib.dll and interop.mscomlib.dll) while intializing thi...more >>

Froms and Labels
Posted by Allen Maki at 4/22/2007 8:39:36 PM
I wonder if you could help. The event handler code below, will allow the user to change the phone number and write it on a label of a message box. I want to replace the message box with a dialog box. Can anybody help me replace the message box below to a dialog box. In other words. I wan...more >>

Managed vs Unmanaged Bare Bones Performance Test
Posted by adhingra at 4/19/2007 1:52:01 PM
At our company we are currently at a decisive point to choose between managed and unmanaged code on the basis of their performance. I have read stuff about this on various blogs and other websites. Then I decided to take my own test as I am more concerned with basic performance at this point. ...more >>

GB.Collect() can be trusted?
Posted by Ward Bekker at 4/19/2007 12:33:11 PM
Hi, I'm wondering if the GC.Collect method really collects all objects possible objects? Or is this still a "smart" process sometimes keeping objects alive even if they can be garbage collected? I need to know because I'm looking for memory leaks in an application. It would be really he...more >>

CLR Hosting COR_E_TARGETINVOCATION
Posted by ChristiG at 4/19/2007 12:00:00 AM
Hi Im hosting CLR in an vc6 project via: - CorBindToRuntimeEx - Start - GetDefaultDomain - Load_3 (load assambly from mem) - get_EntryPoint - Invoke_3(vTarget, pSAParams, &vRetVal); (execute main) In this way I am able to load most of the pure manged files. I even figured what to put in...more >>

Running .NET 2.0 app as 32 bit on Windows 2003 x64
Posted by nickdu at 4/17/2007 1:20:06 PM
I see from another post that I can run a .NET 2.0 application as 32 bit on Windows 2003 x64 by using the /platform:x86 switch. Is there a way to choose this at runtime? Maybe a app config file setting? -- Thanks, Nick nicknospamdu@community.nospam remove "nospam" change community. to m...more >>



print the current time on the screen
Posted by Allen Maki at 4/15/2007 3:07:21 PM
Hi everybody, I need help. I want to print the current time on the screen. After research I managed to run the codes below in regular C++. But I could not make it to run in .NET Framework environment. Can anybody tell me how to make these codes to work in .NET Framework or sho...more >>

Web develop
Posted by WELCOME ### at 4/15/2007 12:34:51 AM
Hi all How can I do "web site" or "Web developer" by using C++. I tried using Visual studio 2005. I could not do it because C++ language not available by using ASP.NET. How can I overcome this problem? Than you. ====================== ...more >>

Reflection.Emit Call
Posted by Fabio at 4/12/2007 2:32:14 PM
Hi all! Someone can tell me how to add a call instance <method> to my IL with Reflection.Emit()? I can add call <method> callvirt <method> but I need a call instance <method>, because (it seems) that with value types the callvirt give the warning <'instance' added to method's ca...more >>

Native compilation
Posted by VBAdev at 4/10/2007 7:07:23 AM
Hi all, I'm looking for a tool to compile .net assemblies to native code to protect a product from decompilation. I already considered Remotsoft linker and minideploy tool. Can you suggest me any other product? TIA Marco Paci ...more >>

How to use generics with reflection?
Posted by Carlo Folini at 4/10/2007 3:10:01 AM
Hi, I have a runtime generated class (a WCF proxy) that extends a generic type. The generated code is: [DebuggerStepThrough, GeneratedCode("System.ServiceModel", "3.0.0.0")] public class _MyTypeClient : ClientBase<_MyType>, _MyType { ..... } Now I would like to call some methods from an in...more >>

Higher Order Instructions
Posted by Christopher Diggins at 4/8/2007 1:13:56 PM
I was wondering if there has been any research into adding higher- order instruction to the CIL? In other words instructions that either push or pop instructions on the evaluation stack. There are only a few core instructions that would be neccessary to build others : - constantly : pop a v...more >>

Access WMI in C# ?
Posted by Henry at 4/7/2007 11:58:03 AM
Below is the code I am trying to use in a console application, each time I run it I get an Management error Illegal Class error. I have traced the error to the \"Win32_Process\" line, apparently the wmi path is incorrect. Tried to run the app on both xp and vista with the same error. Could som...more >>

Injecting IL byte codes
Posted by Mark_Parker at 4/6/2007 2:44:00 PM
From the MSDN topic on DynamicMethod I've been able to create a very simple dynamic method. Following the sample code for DynamicMethod, my method uses ILGenerator.Emit to emit the opcodes, and everything is fine. To try something different, I thought I would try to skip the calls to Emit, ...more >>

CLR Internals Book?
Posted by mob at 4/5/2007 9:48:03 AM
I have been reading "Microsoft Windows Internals" (by Solomon & Russinovich) off and on and find it an excellent resource for understanding what goes on under the hood of Windows. But I am wondering if there is a book (Or books) out there that are of the same caliber as the “Windows Internal...more >>

Documentation on Thread::StartupSetApartmentStateInternal
Posted by Nguyen, V.Y. at 4/4/2007 3:36:00 AM
Hey all, I need to figure out what Thread::StartupSetApartmentStateInternal does. Unfortunately, I have not found this internal call in the shared source CLI 2.0 nor any mentioning to it on MSDN. Has anyone an idea on what Thread::StartupSetApartmentStateInternal does or does someone ha...more >>

FileLoadException msvcm80.dll and msvcr80.dll are missing (by depends.exe)
Posted by Loy at 4/4/2007 1:01:50 AM
Scenario: Code compiled on VS2005 When running on a machine w/o VS2005 - The application fail to load (it does load correctly on the first machine - just a clarification) I get: System.IO.FileLoadException: Could not load file or assembly <my assembly> On machine w/ VS2005 When I check d...more >>


DevelopmentNow Blog