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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|