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
May 2008
June 2008


all groups > dotnet clr > july 2004 > threads for july 22 - 28, 2004

Filter by week: 1 2 3 4 5

When to use Synchronized method and When to use lock?
Posted by Lei Jiang at 7/28/2004 1:07:08 PM
To prevent concurrent access to a data structure, one way is to use its Synchronized method, another way is to use unlock keyword in C#. I'd like to know how to choose from them. For example : class MyClass { ArrayList list = new ArrayList(); void Method(object newObj) { ...more >>

disappearing process when launched from web service
Posted by Tim Mackey at 7/28/2004 11:15:46 AM
Hi,=20 I have a question about the scope of a process, when launched from a web = service (using Process.Start). it may sound silly but there is an = unusual side effect, the process disappears as soon as it starts. i'm = building a very simple web service to control a server dial-up = connec...more >>

Dynamic assembly not persisting correctly.
Posted by google NO[at]SPAM xemaps.com at 7/27/2004 11:21:44 PM
I am emitting a dynamic assembly (marked with the RunAndSave flag). I can successfully instantiate the "dynamic" class in my dynamic assembly. I can successfully call a method on that dynamic class. When I call the assembly builder's Save() method, an assembly dll (e.g., MyDynamicAssembly.dl...more >>

Do I trust the implementation ?
Posted by hugo batista at 7/27/2004 8:10:28 PM
Hi I have a factory pattern that gives me an instance of an implementation that is not a well known. All I know is the interface, and I read the final implementation somewhere from my configuration. This is great for plug-ins, where you can have your code completely independent of the final imp...more >>

binary compatibility support for .NET assembly
Posted by someone at 7/27/2004 6:16:38 PM
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run with recompiling and relinking. I know that if I define an interface, and only expose the interface ...more >>

CPU Racing w/ Idle App
Posted by JD at 7/27/2004 3:58:29 PM
(longish message, but I appreciate ANY insight) We have a .NET 1.1 Winforms application that recently started to exhibit some odd behavior. Specifically, after sitting idle for a while (> 30 minutes), the user's CPU starts getting hammered. Here's some background info: First, it's a desktop...more >>

EnC in VB Whidbey
Posted by Sriram Krishnan at 7/27/2004 12:35:05 AM
Can someone tell me how Edit and Continue works internally in VB Whidbey? I mean - what happens behind-the-scenes in the CLR when you change the code in the debugger and run the application again Thanks! -- Sriram Krishnan Microsoft Student Ambassador http://www.dotnetjunkies.com/weblog/...more >>

GC SuppressFinalize and ReRegisterForFinalize
Posted by Priyesh at 7/25/2004 12:11:35 PM
I am having trouble understanding the code below. (From http://msdn.microsoft.com/msdnmag/issues/1100/GCI/ Figure 9) I am looking for an explanation about how the SuppressFinalize calls work. From reading the documentation, i get the idea that SuppressFinalize would remove the obj from the fi...more >>



Br vs Br_s while Emiting a Switch Statment
Posted by SapphireHawk at 7/24/2004 11:27:45 AM
I am dynamically Emitting a switch statement using System.Reflection.Emit. I have used the ILDASM and copied a switch statement’s syntax as a reference. I run my code to build the function and I got an Illegal One-Byte branch exception. I figured out that the first couple of (break;) jumps use...more >>

Why the Microsoft.VisualBasic in Manifest
Posted by Michael Liu at 7/24/2004 10:58:13 AM
Hello, I wrote two assemblies by VB.NET and C# to implement the same function to sayHelloWorld. After compilation, I used ILDASM to inspect the assembly DLLs. Just found there are two more system assemblies(Microsoft.VisualBasic & System) referenced by VB.NET than C# Can anyone tell m...more >>

Determine calling method from within called method?
Posted by Ben Fidge at 7/23/2004 7:24:46 AM
From within a method of a class, how do you determine the name of the class.method that called it, programmatically? I have a log file class, and it would be very beneficial to be able store the name of the class and method that called my LogFile.Write method. Kind regards Ben ...more >>

ICorProfilerInfo::GetModuleInfo doesn't have argument for assembly
Posted by Adam Preble at 7/22/2004 4:55:03 PM
According to the profiling documentation I have, ICorProfilerInfo::GetModuleInfo has the following prototype: HRESULT GetModuleInfo( ModuleID moduleId, LPCBYTE **ppBaseLoadAddress, SIZE_T cchName, SIZE_T *pcchName, WCHAR szName[], mdModule *pModuleToken, AssemblyID *pAssemblyId ) How...more >>

How do I locate custom attributes on private fields?
Posted by Ken Varn at 7/22/2004 11:53:06 AM
I have a custom attribute that I would like to locate on fields within a class object. I can only find the attribute if it is placed on a public field. Private fields cannot be found. I have tried the following code, but not sure why it is not finding the attribute when the field is marked pr...more >>


DevelopmentNow Blog