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

all Thread objects in AppDomain
Posted by Alex Bereznyi at 8/30/2005 4:45:21 PM
How can one enumerate all running Thread objects in AppDomain? Is there a way to do it in .NET 2.0? ...more >>


How to cast a Hashtable to a SqlParameterCollection in C#?
Posted by Jaime Stuardo at 8/30/2005 10:29:02 AM
Hi all.... Is it possible to cast a Hashtable object to a SqlParameterCollection object? Both types implements ICollection interface, so I think it is possible to do that without the need of using foreach and copying each element individually. I tried SqlParameterCollection sqlParamIn =...more >>

CLR Info
Posted by Eduardo Fonseca B. at 8/29/2005 5:20:02 PM
Is there a way in which I can access the CLR information, like what .NET applications are running, the object that are created, the memory the use, etc? Thanks....more >>

StackOverflowException coming from within the CLR?
Posted by Matt Garven at 8/29/2005 12:00:00 AM
We're receiving a StackOverflowException intermittently. I've attached with WinDbg and provided some of the stack below (you can see the repeating pattern that eventually causes the stack overflow): 0:004> !DumpStack 035cc9d8 Thread 4 Current frame: ntdll!KiFastSystemCallRet ChildEBP Ret...more >>

active directory
Posted by z f at 8/28/2005 10:09:14 AM
what namespace in the CLR help working with active directory (impot users etc...) TIA ...more >>

The CLR behaves a bit incoherent
Posted by Kjetil Kristoffer Solberg at 8/28/2005 12:00:00 AM
If I statically link to an assembly(MyClassLibrary) and create an instance of a type that works fine. If i take the assembly class representing the statically linked one and do a CreateInstance and cast it to the correct type that works as well. However if a do an Assembly.LoadFile on the s...more >>

System.OutOfMemoryException when allocating .net arrays
Posted by lupesko NO[at]SPAM gmail.com at 8/27/2005 5:47:07 AM
Hi all, I have a major problem in my application. The application does lots of image processing computations, which are all implemented in managed code, and involve large array allocations (most of these arrays fit into the large object heap). Until a few days ago everything was working lik...more >>

Overriding explicit implementation
Posted by nickdu at 8/26/2005 11:40:32 AM
Is there a way to override an explicit implementation, say CollectionBase.IList.Insert(), and then in my override defer to that implementation? I've been able to override that implementation (though I was suprised that I needed to add IList to my class's inheritance), but I can't see anyway...more >>



MSIL Sizes and CS->EXE->IL
Posted by David Betz at 8/24/2005 12:28:03 PM
Dear MVPs: I have an interesting question for you...well, I find it interesting at least. I am giving a talk on .NET technologies next Friday and while I was working on creating a few examples I noticed something in my work that I had not noticed before. When I compile a simple C# hello...more >>

.NET 2.0 Framework..
Posted by Wayne Gibson at 8/24/2005 12:00:00 AM
Hi, Was wondering if anybody could tell me if the .NET 2.0 framework will be supporting Windows NT? I looked at the system requirements, but can seem to see Windows NT there!! Anybody know.. Many Thanks Wayne Gibson ...more >>

Referencing/using an assembly w/o a strong name in an assembly wit
Posted by Kevin Burton at 8/18/2005 1:49:02 PM
I am referencing an assembly from a third party that is not strongly name and I am getting the error: Assembly generation failed – Referenced assembly ‘xxxx’ does not have a strong name There must be a way to use/reference an assembly that does not have a strong name inside of an a...more >>

VS debugger stopped working
Posted by Mikael Östberg at 8/18/2005 10:17:14 AM
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this point. I can still set breakpoints and when debugging the breakpoints get hit - just like it would w...more >>

Decimal point symbol
Posted by Andreas Håkansson at 8/18/2005 12:00:00 AM
Is there anyway unified way to parse a string of a decimal value which either contains a comma (,) or a period (.) as the decimal point, without knowing which before you parse? Decimal.Parse with NumberStyles.Currency and CultureInfo.InvariantCulture does not do the trick. The provide...more >>

Problem in registering external dll using Create Assembly
Posted by None at 8/17/2005 10:49:51 PM
Hi, I have created CLR Trigger project using SQL Server Project. In that project i want to add external dll which is located in disk. For that first i have placed the external dll in one folder. Than i have placed all the supporting dlls for the external dll in that folder. Then using Crea...more >>

Network Shared Folder Unavailable
Posted by Rahul Anand at 8/17/2005 3:45:03 AM
Hi, I am facing a problem in accessing a network shared folder. I just wrote a test console application to test the behavior and found that in some cases the .NET does not releases the network connection after accessing the folder. I am not instantiating object which holds the network reso...more >>

When Garbage Collector Runs?
Posted by Ganesh at 8/17/2005 1:32:01 AM
Hi, I just want to know when the garbage collector runs? Is there any condition that should meet before the garbage collector gets executed?. Thanks in advance !!...more >>

Strong name to assemblies deployed privately
Posted by Javier Martinez at 8/17/2005 12:00:00 AM
Hi It is a good practice to set that all assemblies in my company must to have a strong name even the privately deploying. I'm looking for a simples rules. Thanks in advance Javier ...more >>

CLR shared across multiple users on TS or citrix server
Posted by john conwell at 8/16/2005 9:39:46 AM
If you run 3 different .Net applications on one machine, a certian amount of memory loaded by the OS to run the CLR is shared across all instances. But if i have a server setup as a terminal server or citrix server, with 5 users logged on running .Net applications, with the OS still share thi...more >>

How to add reference in C# SQL Server Project (June CTP)
Posted by None at 8/15/2005 10:09:41 PM
Hi, I'm using June CTP Visual studio .NET Framework. I have created SQL Server Project in C# language. In that i want to add external dll's(located in disk) to that Project. But when i click the Add reference in the References, it shows only two Tabs 1. Projects 2. SQL Server. I cant ...more >>

modopt IsCXXReferenceModifier
Posted by Ralf Propach at 8/15/2005 12:00:00 AM
Hi all, I want to use the classes in the System.Reflection namespace to gather information about classes in an assembly and about their members. But there is one information I have not managed to find: When you pass parameters by reference in managed C++, these parameters have a modopt IsCXXRe...more >>

Compiling .net CF for different Operating Systems
Posted by Ashishthaps at 8/12/2005 7:55:03 AM
I have developed a software using Microsoft Visual C# .NET, which can run under Windows CE.NET. The software is running in a CASIO (DX-T10) device and controlling WJ RFID Card. When I started the project from the Microsoft Visual Studio .Net, I selected Smart Device Application. Now, we wo...more >>

Implementing / using the IExpando interface
Posted by Matt Adamson at 8/12/2005 12:00:00 AM
Guys, Does anyone know much about the IExpando interface? I have a business object I've created and I'd like to add support for methods / attributes at runtime so that scripting clients ( e.g. ASP / VBScript / Java script ) can call the .NET object through a RCW and invoke methods which are...more >>

GC problem
Posted by Madhu Gopinathan at 8/11/2005 12:00:00 AM
Hi, I am setting System.Threading.Thread.CurrentPrincipal to a Windows pricipal before I go ahead call methods to process, sometimes cross assembly. The problem I am facing is that intermittently the WindowsPrincipal object within seems to be garbage collected because I get "Handle is...more >>

Number of physical threads
Posted by John at 8/10/2005 8:18:08 AM
What is the difference, in .NET between physical and logical Threads ? To be more precise, how does it affects performance to have a high number of threads (100) ? Does it means that the processor will have to constantly switch context between thread, then beeing inneficient ? Thanks Joh...more >>

Cryptography- RSA
Posted by Alex Kazovic at 8/10/2005 7:38:15 AM
Hi All Not sure is ths is the right newgroup; if not could you point me in the right direction? I've written an application for .Net 1.1 that uses the RSACryptoServiceProvider. It all works fine when I tested it on Windows XP, Windows2003 etc. But a customer has Windows 98 SE and they ha...more >>

Sending exceptions across domains and threads
Posted by Vagif Abilov at 8/9/2005 11:28:46 AM
There is an excellent set of guidelines about rules to throw exceptions: http://blogs.msdn.com/kcwalina/archive/2005/03/16/396787.aspx Two very important statements: Do not return error codes. Exceptions are the primary means of reporting errors in frameworks. Do not use error codes be...more >>

How the OS manages the CLR Threads ?
Posted by John at 8/8/2005 2:32:04 AM
This is the situation : I run an application with 5 threads with 50 updates/sec (the thread receives some data then send it to a client) Works fine I run another application using 5 Threads. The first one is working slower... I close the second app The first one works fine .... I...more >>

Accessing the CLR Heap at runtime?
Posted by WorJurn at 8/8/2005 12:00:00 AM
Can anyone tell me if it is possible to access the CLR heap at runtime? We have a very large application with 30+ forms and we need to monitor which forms have had instances created and which ones have not. It would be too complicated to pass references to each form around around between ...more >>

XmlSerialize array
Posted by Netveloper at 8/8/2005 12:00:00 AM
How do you xml-serialize an array of a class? I have narrowed it down to use an emply class (I've tried a class with properties and fields as well) like this Public Class MyClass End Class To be serialized like this Dim Output As New MemoryStream Dim Serializer As X...more >>

WaitForMultipleObjects equivalent in .Net?
Posted by Madhu Gopinathan at 8/8/2005 12:00:00 AM
Hi, I need to implement my own ThreadPool class because I want to have control over the threads and their lifetimes. The ThreadPool class will take care of thread recovery in case threads lock up and the implementation provided by .Net does not provide for the same. My question now is...more >>

Thread.Abort and deadlock
Posted by Jon Shemitz at 8/7/2005 12:59:29 AM
Is Thread.Abort safe? Given code like Monitor.Enter(Datum); try { // obviously, an Abort is safe here } finally { Monitor.Exit(Datum); } (or the equivalent "lock (Datum) { /*obviously, an Abort is safe here*/ }") it's clearly safe to Abort within the try block. B...more >>

Dotfuscation
Posted by ActiveX at 8/6/2005 12:00:00 AM
Hi! i have a problem about dotfuscation or any process that called dotfuscation. I can see code details in .NET reflector while my assemblies already dotfuscated by Dosfucator... isnt there any way to keeping my code secure.?? thanks.... ...more >>

Debug version of CLR
Posted by Darren at 8/5/2005 2:18:40 PM
Is there a debug version of the 1.1 framework available? I'm getting a null reference exception in System.Data.dll that I'd like to track down but can't step into the code. It's throwing an exception while clearing the child relations of a data table. ...more >>

AssemblyLoadFrom(URL) works only on some machines
Posted by Chucker at 8/4/2005 10:15:06 AM
Hi Folks, I got an Auto-Updating Application that is supposed to download all the assemblies needed from a deployment machine when started. Here ist the Code for the Launcher that has to be deployed to the Machine actually running the Code. All other Stuff should be downloaded upon executio...more >>

MASM problem with long filenames
Posted by Workman at 8/4/2005 4:19:02 AM
I'm trying to use ml.exe to comile some .asm files but it doesn't seem to like long filenames. Using the INPUTPATH macro with VS.net 2003 it tells me it can't find the file "and", like so ... Performing Custom Build Step Microsoft (R) Macro Assembler Version 7.10.3077 Copyright (C) Microsoft...more >>

treating an object as another type (not castable)
Posted by Andy Fish at 8/3/2005 12:00:00 AM
Hi all, sorry about the subject but I couldn't think of a sensible way to put it say I have class A { public int i; public string s; } class B { public int i; public string s; } now I have an object of type A but I want to treat it as if it were type B. Obviously a cast is not valid. ...more >>

Can I wake up a thread that has called Sleep()
Posted by Roy Chastain at 8/2/2005 10:55:53 AM
I have a situation where a thread will sleep, do some work and sleep again until it is told terminate. Of course the termination could take some time, if the thread is in a long sleep. (Sleep here is a refresh interval and the user could reasonably expect to set it into the several minute range....more >>


DevelopmentNow Blog