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 > november 2007

Filter by week: 1 2 3 4 5

Cant call Marshal.PtrToStructure from a DynamicMethod
Posted by john conwell at 11/27/2007 6:12:01 PM
I'm trying to create a DynamicMethod to handle custom marshaling from a pointer in memory to managed types. I'm trying to use a DynamicMethod so I can template the code for all the custom marshaling and dont have to maintain it. My problem is I cant call Marshal.PtrToStructure in a Dynamic...more >>

Generic Collections
Posted by Scott M. at 11/27/2007 2:33:23 PM
Given that in .NET 1.x, we could make a strongly-typed collection by creating a class that inherited from CollectionBase and implementing custom Add, Remove, and Item members that only work for a given type and that now, with Generics we don't need to do that extra work, does it mean that to ...more >>

How to get base data type for enum via reflection
Posted by john conwell at 11/27/2007 11:03:01 AM
in .Net you can make your Enum inherit from sbyte, byte, short, ushort, int, uint, long, ulong (default is int). What I'm trying to do is determine what is the underlying type of a enum at runtime via reflection. But I cant figure out how. If I get the Type of my custom emun, it's base ...more >>

Generics Question
Posted by Scott M. at 11/23/2007 12:28:44 PM
1. Although I get the relative simplicity of Generics over using interfaces is it true that I *could* do what Generics offers with interfaces? ...more >>

Is it possbile to enumerate Methods by Event?
Posted by athos.jingle@gmail.com at 11/23/2007 10:29:14 AM
To attach a method to an event, we can use EventInfo.AddEventHandler. After attached, given an event's name, is it possible to retrieve all methods attached to it? Thank you....more >>

.NET Compact Framework System.Windows.Forms.UserControl is leaking memory
Posted by Armin Sczuka at 11/22/2007 11:07:45 AM
Hello, I figured out that all objects based on System.Windows.Forms.UserControl are never disposed by the Compact Framework GC. This problem occours only under Windows CE not with Win32/ Win64. Is this a known issue? Is there any fix for it? How about the .NET Compact Framework 3.5? ...more >>

How to tell sql server the maximum size my temp table will grow so that it does at most 1 memory allocation?
Posted by DR at 11/21/2007 1:43:17 PM
How to tell sql server the maximum size my temp table will grow so that it does at most 1 memory allocation? ...more >>

Not matching signatures
Posted by Arne Garvander at 11/21/2007 11:48:02 AM
The error below doesn't make sense to me: Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As CclECILib.CclOBuf, MFReason As String...more >>



NET CLR Networking?
Posted by doom at 11/20/2007 4:52:37 PM
Hi All, Am dealing with some .net socket applications. My 1st query is when should we see this "NET CLR Networking" performance object available on a system, i mean after installing which component of .net., for both 32x and 64x systems. If I ran one c# socket application(server client),...more >>

C# 3.0 Automatic Properties and CodeDom
Posted by Ed at 11/20/2007 2:14:00 PM
Anyone know how to generate an automatic property using CodeDom and VS2008? ...more >>

IL .override question
Posted by AJ at 11/20/2007 10:35:21 AM
I'm trying to resolve an issue where my application doesn't run after obsfucation using dotfuscator. I'm looking at the IL output from dotfuscator using reflector, and have a query.. I've a class that implements a generic interface.. ..class public abstract auto ansi beforefieldinit Fac...more >>

I have a CLR function thet returns IEnumberable (a table) and it has a FillRow function. I am returning 10,000 integers from this function. Is there a
Posted by DR at 11/19/2007 7:41:06 PM
I have a CLR function thet returns IEnumberable (a table) and it has a FillRow function. I am returning 10,000 integers from this function. Is there any way that I can preallocate the resulting table or give SQL server hint as to how many rows my function will return? It makes me cringe to t...more >>

VS 2005 and Terminal Services Detection
Posted by GAZ at 11/19/2007 5:22:48 PM
Is it possible to detect whether an application is started on a regular computer (xp, vista, etc.) or through terminal services? Basically, we would like to prevent users from starting our application through terminal services. Thanks for any answers and/or ideas. BR, GAZ ...more >>

Experience hosting the CLR from native c++ ?
Posted by Dave Farquharson at 11/19/2007 10:23:30 AM
Hello, I am trying to find good information on hosting the CLR from my native c++ program. I'm successfully using CorBindToRuntimeEx to host the CLR and executing functions in a test CLR assembly using ExecuteInDefaultAppDomain. That's all great, but my problem is that the execute function ...more >>

Query permissions for System.Net
Posted by Gene Chang at 11/15/2007 8:52:12 AM
I am writing an application where I obtain the IP address of the local adapter. When the user is logged in as Guest, this call fails with an exception: Access to the path 'Global\.net clr networking' is denied I think this is because the guest user is not allowed to access System.Net. How ...more >>

Is there a way to execute code on Assembly loading?
Posted by Simon Egli at 11/8/2007 4:18:32 AM
Hello, I have an assembly A that implements additional features for another assembly B and should link itself automatically into the mechanisms of B when it is loaded. Is there a way to get code executed in assembly A without explicitly calling a method in A? Thanx, Simon ...more >>

Unexpected reentrancy on Wait,etc...
Posted by jaket at 11/2/2007 11:39:58 PM
Hello, I have run into a serious reentrancy problem. It appears from a stack trace that lock, WaitOne and Thread.Join do some servicing of the message queue. Here is the setup: The GUI thread uses a combination of Application.Idle and a timer to simulate the old MFC OnIdle. The Idle hand...more >>

How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine.
Posted by DR at 11/2/2007 2:05:21 PM
How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine. I get this error when i try to connect to remote machien with visual studio: unable to connect to microsoft vistual studio remote debugging monitor named msdb3. the microsfot v...more >>


DevelopmentNow Blog