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 2007

unitialized readonly fields produces no warning
Posted by cody at 9/29/2007 9:11:20 PM
It is possible to declare and use/instantiate a class with a uninitialized readonly field without even a compiler warning. Why don't I get warnings? public class Stuff { public readonly int a; } By definition, readonly fields can only be initialized inside a constructor or within t...more >>


Pointers in VC.Net
Posted by Dipesh_Sharma at 9/27/2007 11:22:01 PM
Hi All, I am new on this VC.Net platform, So please dont mind to my question. In VC++ we can use pointers very easily, but i want to know if we can use: int *ptr = new int[10]; and char * in VC.net. If we cant use them whats the alternate option for them. Please explain me this or provide m...more >>

Porting
Posted by Dipesh_Sharma at 9/26/2007 11:51:02 PM
Hi all, I have unmanaged code written in VC++ and i have to port it to VC.Net i.e to make it compatible with .Net environment. Please suggest me how i can port whole source code with API's etc. What technique i should use....more >>

starting streams at offsets
Posted by Lee Crabtree at 9/24/2007 1:55:16 PM
Is there an existing means of starting a FileStream at a given offset into a file? That is, can the origin be set somewhere other than the beginning of the actual file? As an example, let's suppose I'd like to disregard the first 32768 bytes in a file. I know I could create a normal file ...more >>

Bytes in All Heaps
Posted by doom at 9/24/2007 12:00:00 AM
Am having VS2005 on W2K3. The definition of this "Bytes in All Heaps" is the sum of all the heaps(Gen0+Gen1+Gen2+LOH). I could observe the value of "Bytes in All Heaps" equals to (Gen1 + Gen2 + LOH) heap size and not including Gen0 heap size. Is this a known bug or what. user ...more >>

reading registry
Posted by AVL at 9/19/2007 5:30:10 AM
hi, i've a requirement to scan the registry keys programatically in a console application and read the data of the keys.. given a registry key, say,"HKEY_USERS". user should be able to scan the subkeys of the given key recursively(i.e. all the subkeys of the given subkeys etcc..) till the l...more >>

.NET CLR2.0 error with CLR1.x profiler
Posted by TonyB at 9/18/2007 11:20:04 AM
I'm looking for information to help debug the following message in the System Event log: ..NET Runtime version 2.0.50727.42 - CLR 2.0 does not support profilers written for CLR 1.x What debug tools are helpful in tracking down the source of this error? Thanks, Tony...more >>

enforcing .NET1.1 compatibility of autogenerated assemblies
Posted by Edgile at 9/12/2007 1:48:01 AM
Hello everyone, I have a little app the generates and saves assemblies on the fly, similarly to xsd.exe. While xsd.exe creates you source code, my stuff creates the dll directly using System.Reflection.Emit.AssemblyBuilder. The app is built for ..NET1.1 therefore I do not use any .NET2.0 fe...more >>



System.Security.SecurityException
Posted by RobGMiller at 9/6/2007 4:30:05 AM
Building a windows exe application using VS2005 - VB.Net Debug within the VS IDE works and the compiled exe works from the \bin\debug folder but not from any other location on the same computer. Apparently, the error is generated when the application tries to open a file. From what I...more >>


DevelopmentNow Blog