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 > may 2005

.NET Windows Service Question - Ho to determine directory where service executable is?
Posted by Joe Rattz at 5/27/2005 10:55:08 AM
I can't seem to find the appropriate news group to post this question to so sorry if this isn't it. I have a C# .NET windows service. I want my service to be able to load some files from its install directory at runtime. However, when the service is running, the current directory is c:\winnt...more >>

Execute code from a text file
Posted by André at 5/26/2005 5:38:01 PM
Hi, Can anyone tell me how I can run vb.net or C# code from a text document? I want to have a smart client (compiled) and I want that smart client to write to a text file and execute the code from that file. I’ve seen an example of this somewhere; I think you have to bring in a namespac...more >>

AssemblyResolve callback never called in .NET 2.0
Posted by Matt Zinkevicius at 5/26/2005 4:12:05 PM
Hi, We have a product written in C# that we are migrating to Visual Studio 2005 (beta 2) and .NET 2.0. Everything builds fine, but during runtime we are hitting a new exception. When it is deserializing a some classes from disk that were serialized with the .NET 1.1 version, we are now gettin...more >>

htrace and CLR
Posted by jd at 5/26/2005 4:15:34 AM
I'm trying to use windbg's "!htrace" command to find the source of a handle leak in a C# app I have. To understand the !htrace output, I have created a little sample app that just opens a file: static void Main(string[] args) { FileStream fs =3D File.OpenRead(@"c:\foo.txt"); ...more >>

Double.ToString round-trip: "R" vs. "G17"
Posted by Jason Frank at 5/25/2005 1:38:44 PM
One aspect of an application I'm working on requires doubles to be sent to a browser in XML, and therefore the doubles have to be represented as strings. We also need to be able to take the XML back from the browser and parse the doubles, and have them turn into the "same" double as before it ...more >>

ILMerge and Linking the Runtime
Posted by Rich at 5/25/2005 12:00:00 AM
Putting aside all the arguments for and against (if you can), is it POSSIBLE to: Use ILMerge to link the runtime (or the relevant bits of it) so that my users don't need the framework installed. Yes it would be hard, no its prob not a good idea, but is it _possible_? The other solutions s...more >>

Re: FIFO mutex
Posted by Pavel Lebedinsky [MSFT] at 5/24/2005 10:07:43 PM
Hit send too early. Anyways, critical sections have been changed in W2K3 SP1 / XP x64 to allow non-FIFO order under contention. > There is no way to block kernel APCs from user mode. > > If you need strict FIFO then I think the easiest approach is to > give each thread its own event to wait o...more >>

Double comparisons for equality
Posted by Jason Frank at 5/24/2005 12:00:00 AM
I have an application written in .NET that reads in data as doubles. For various reasons, I have a need to know if a given double that I'm reading in is the same as any others that I've seen before. I am currently using a hashtable to do this, using the double as the key. It seems to be wor...more >>



FIFO mutex
Posted by Aleksey Tkachenko at 5/23/2005 9:30:20 AM
Hi All, "Threads that are waiting for ownership of a mutex are placed in a first in, first out (FIFO) queue. Therefore, the first thread to wait on the mutex will be the first to receive ownership of the mutex, regardless of thread priority. However, kernel-mode APCs and events that suspend a...more >>

Loading assemblies from another AppDomain
Posted by Vagif Abilov at 5/20/2005 12:27:13 AM
Hello, My application creates an AppDomain and sets is base directory outside the directory of the creator. Then it needs to load in a newly created domain an assembly that is installed in the original (creator) domain. And fails, of coures, because new domain does not have this directory i...more >>

how to modify a existing resource file
Posted by Sandeep Sahu via .NET 247 at 5/19/2005 8:54:07 PM
Do you know how to modify a resource file existing in a C# project. I mean read a resouce file and change its contents. It would be great help to me. Thanks -------------------------------- From: Sandeep Sahu ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/)...more >>

Reload Assembly
Posted by arnold park at 5/19/2005 1:26:11 AM
Hello. I have a .net remoting host which is windows service. Most of the server component are servicedComponent. They're located in GAC. The problem arises whenever i modify one of the server compoent and reinstall it into GAC. Is there any way I can access the new version of the server c...more >>

FieldInfo.GetRawConstantValue?
Posted by Simon Ellis at 5/18/2005 3:00:01 AM
This method (and also PropertyInfo.GetRawConstantValue) are new in Beta2. Using reflector, the implementation of these methods simply throw a 'not implemented' exception. Is the intention to implement these methods by RTM (so that we can use them) or will they be removed? Thanks, ...more >>

Default assemblies and CorBindToRuntimeEx
Posted by Sean Hederman at 5/17/2005 8:05:24 PM
I've got a couple of things I'm not sure in my mind about as far as the options to CorBindToRuntimeEx go: 1. Is the default option for Windows Forms is STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST? 2. If I start the default domain using STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST, create ...more >>

About context sensitivity.
Posted by Haroon at 5/16/2005 10:04:02 AM
Hello ! I am new to the community and related stuff. However I was wondering that wether CLR would be able to understand or can be extended to context sensitivity. If some programming languages already exists and it targets .NET please let me know about and if not, I am thinking to work on ...more >>

Garbage Collection - Strange Results.
Posted by CodeGuru at 5/14/2005 2:54:08 PM
Althought I have read hundreds if not more pages on msdn as well other sites on IDisposable and heap generations. I am still a bit confused as to why the application I have written is acting in such "weird/awkward" manner. Basic outline of the application goes: Multi threaded socket appli...more >>

Garbage Collector: set strong reference to null, why?
Posted by Manikkoth at 5/11/2005 5:24:03 PM
Hello, Why is it recommended to set the strong reference to null once the use is over? Will the garbage collector be able to collect all my weak reference objects, if I set it to a strong reference again and again without setting the strong reference to null in between? somewhat like this ...more >>

is there an API to determine if an assembly is loaded domain neutral?
Posted by Jon Jagger at 5/9/2005 10:04:44 AM
and if so what is it? Thanks Jon Jagger ...more >>

Sorting StringCollection?
Posted by Ben Fidge at 5/4/2005 4:31:05 AM
Hi What are the options for sorting a StringCollection? I'm quite surprised that StringCollection doesn't have any sorting capability built in! Thanks Ben...more >>

IO-statements do not execute on network-drive ???
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/4/2005 2:04:26 AM
Hi, executing the following on a local drive works fine : FileStream wLog = File.OpenRead("c:\Log.txt") FileStream wLog = File.OpenRead("h:\Log.txt") but executing the same code on a network drive creates a FileIOPermission-exception. although the user has full control on the drive ...more >>

System.ExecutionEngineException error wierdness
Posted by sushant.bhatia NO[at]SPAM gmail.com at 5/2/2005 9:37:03 AM
Hi All. I am using the SecureBlackBox class for cryptography to create a new X509 certificate. SBX509.TElX509Certificate certUsr = new SBX509.TElX509Certificate(); certUser.LoadFromBuffer(certData); This works fine in some areas of my code but all of a sudden, a certain part of my code ...more >>

Unload asselby in Net2
Posted by netronproject NO[at]SPAM hotmail.com at 5/2/2005 4:29:21 AM
Is it (or will it be) possible to unload an assembly in .Net 2.0? Thanks, F. _______________ The Netron Project http://netron.sf.net...more >>

Process.Exited event does not fire for foreign processes
Posted by Manfred Braun at 5/2/2005 12:00:00 AM
Hi All, I would just evaluate, how good the Process.Exited event works in process monitoring. I made the experience, it works fine for proceses, which I have started from my watching process. I would also catch this event for foreign processes, but this does not seem to work. Could someone ple...more >>


DevelopmentNow Blog