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 > june 2006

Filter by week: 1 2 3 4 5

How do I do this
Posted by Larry Smith at 6/30/2006 9:13:01 PM
Looking at the ".resx" files produced by the Windows forms designer, I see nodes like this: <data name="MyRadioBtn.Size" type="System.Drawing.Size, System.Drawing"> <value>94, 21</value> If you then read the "94, 21" back into your code as a string (exactly as seen), how do you then...more >>


Generic comparison.
Posted by Kevin Burton at 6/29/2006 4:30:01 PM
I have a class that tries to compare two generic types: if (low < high) Where they are declared as: T low = (T)float.Parse(parts[0]); T high = (T)float.Parse(parts[1]); if (low < high) Two questions come up. 1) I get an error Cannot convert type 'float' to 'T'. ...more >>

Boosting priority of an application for a performance unit test
Posted by Matt Adamson at 6/29/2006 2:12:19 PM
I've created some simple performance tests within the NUnit test framework to test the performance of various core business object calls e.g. creating invoices / purchase orders e.t.c. and updating them. The tests basically need to assert that the time to say create 1000 documents is less th...more >>

Thread stack (not call stack)
Posted by William Sullivan at 6/29/2006 9:36:02 AM
Is there any way to examine a given thread's stack? As in, the list of variables currently accessible by the executing code on a given thread, plus their values? TIA!...more >>

vc++: call an executable?
Posted by poojo hackma at 6/28/2006 4:03:49 PM
Does anyone know how to call an executable from within Visual C++ 2005 Express (using the CLR)? For example, click Button1 to launch Microsoft Paint: System::Void Button1_Clicked(System::Object^ sender, System::EventArgs^ e) { // what can I use to open MS Paint? } ...more >>

SOS.dll loses symbol information
Posted by JR at 6/28/2006 3:25:17 PM
I originally posted this in the windbg forum but the folks suggested it was more SOS than windbg so i should post over here. I attach to the aspnet_wp process to debug a v1.1.4322 asp.net app. I load the sos.dll and set my breakpoint inside a managed function call via 'bp' command. When it br...more >>

Stack height at all points must be determinable in a single forward scan of IL
Posted by Ben Voigt at 6/28/2006 8:15:35 AM
I did some optimizations on my reflection emit, and now I get the following message from PEVerify: Stack height at all points must be determinable in a single forward scan of IL I'm not doing anything especially fancy like folding common code sections together and branching from differen...more >>

Distinguish between managed module and unmanaged module.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 6/28/2006 4:27:19 AM
Hi all, Can someone tell me how OS makde differentation betwen managed module and unmanaged module. Means say suppose i developed one exe in MFC and one in .net. How Os recognise that second exe require .net framework. Means which part of exe is consider while determining whether exe need ....more >>



Diagnosing root cause of .NET application using nearly 500 MB memory
Posted by Matt Adamson at 6/27/2006 9:24:25 PM
We have a .NET application which is obviously using nearly 500MB memory and we can't understand why. I created a dump for a different issue and the server ended up creating a process shutdown dump of this size. I have seen the DumpLargeObjectSegments command however I'm not sure what to look...more >>

A good book about .net Performance Tuning
Posted by hpw at 6/27/2006 7:01:03 AM
Hi all, i'm looking for a good book about .net Performance Tuning. Things that should be covered by this book: - Glean information about your program's behavior from profiling tools - Identify bottlenecks before tuning - Optimization when dealing with objects - Optimize I/O behavior - U...more >>

NOT using the System.Threadpool in server class applications
Posted by Chris Mullins at 6/26/2006 9:24:07 PM
Quite often of late I've been asked about when to use the System Threadpool. I finally sat down and wrote a blog detailing the issues in the ThreadPool and why it's unsuitable for use in production grade server applications. Any feedback on this is appriciated! http://www.coversant.net/do...more >>

PEVerify generates improper ERROR
Posted by Ben Voigt at 6/23/2006 3:16:07 PM
I am calling a method on a member field. The declaring type of the method appears in my inheritance hierarchy, and I am making the call from an override of the same method. Here is the MSIL with the project path and classname replaced by ellipses (read via Reflector, I've used Reflection.E...more >>

Password prompts when signing with smartcard
Posted by Bill Rust at 6/22/2006 6:00:01 PM
Hi, For security reasons, I'm storing my public/private key pair on a smart card. My bulid process delay signs the assemblies using the public key, and I later go back and re-sign the assemblies using public/private key pair from the smartcard using sn.exe -Rc <assembly> <container>. The ...more >>

Programming .NET for cross platform application
Posted by Janiv Ratson at 6/22/2006 10:08:31 AM
Hello, We are going to develop our application from scratch. The application is currently written for WIN32 users only, using MFC. The requirements asks that the application will run (in the future) on Windows, MAC and Linux. Is there any way to write all the code on the .NET Framework, or I s...more >>

Forcing x86 runtime on x64 system
Posted by Thomas Krause at 6/21/2006 3:02:48 PM
Hello, I have the following problem: I have a .net 2.0 application, which dynamically loads a Managed C++ assembly. The managed c++ assembly has the ProcessorArchitecture correctly set to x86 (32 Bit). The application however does not have the 32Bit-Corflag set and is therefore loaded by...more >>

ICLRControl::GetCLRManager error
Posted by noah.adler NO[at]SPAM gmail.com at 6/20/2006 9:15:19 AM
I'm trying to write a custom CLR host for .NET 2.0 in order to revert to the previous model of unloading the AppDomain when an unhandled exception occurs, rather than bubbling it up and terminating the process, which is the new standard behavior. As I understand it, I need to get a ICLRPolicyMa...more >>

Dot net 2.0 frame work but need it to be 1.1
Posted by zach toland at 6/20/2006 6:26:42 AM
I have created an interactive cd-rom in vb2005. The government has not made the upgrade to 2.0, is there any way to publish this out so that is will use the 1.1 framework instead fo the 2.0? *** Sent via Developersdex http://www.developersdex.com ***...more >>

Minimum version of Visual Studio?
Posted by Neil Weicher at 6/19/2006 11:56:01 AM
What is the minimum version of Visual Studio needed for CLR integration? Also, has anyone tried using something besides C# or VB.Net? Thanks in advance for the help. ...more >>

.Net controls not being destroyed when switching pages in a frame
Posted by Kristopher Wragg at 6/19/2006 6:12:28 AM
Hi, Currently were moving all our IE hosted java controls over to .NET, we have a two framed web page, the top frame contains a server client that receives messages from a server stores various information and also fires various events to which controls in the lower frame can register for and...more >>

Handle the remote events
Posted by Thiyagu at 6/19/2006 5:38:01 AM
I tried to find a way to handle the remote events from another .net dll, The scenario is, I have to handle the events from another .net dll by using a given event name. Have anyone ideas about how to do it? Any help is greatly appreciated! ...more >>

lost in delegation
Posted by Tim_Mac at 6/19/2006 3:35:53 AM
hi, i have encountered a strange behaviour when using ref parameters with delegates. basically the changed value is not reflected back to the original calling method. to prove the point, run this simple console application. it sets a string variable 's' with the current number of Ticks, then...more >>

CreateICeeFileGen not deprecated
Posted by Peter Ritchie at 6/16/2006 9:42:02 AM
http://msdn2.microsoft.com/en-us/library/ms404463.aspx details ICeeFileGen as being deprecated; but, CreateICeeFileGen (http://msdn2.microsoft.com/en-us/library/ms233159(d=ide).aspx) has not. If ICeeFileGen is deprecated, what is the suggested alternative to CreateICeeFileGen, or what is th...more >>

.Net 2.0 Framework Strong Name Error
Posted by SenthilVel at 6/16/2006 12:00:00 AM
Hi I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0 framework. for each project when i compile in VS2005 , i get this error\warning: Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' The conversion for this is to ...more >>

Question: Dynamically Raise Event using Reflection API
Posted by KIM at 6/15/2006 1:28:01 AM
Hi there, I tried to find a way to dynamically raise event using Reflection API. The scenario is, I have to raise a event in a class instance by using a given event name. I can use the GetEvent(...) method of the Reflection API to get the EventInfo object. However, the GetRaiseMethod of the...more >>

Generating IL code, running, changing, running again ?
Posted by Rickard at 6/13/2006 2:52:03 PM
I have written a small program that generates a dynamic assembly using Reflection.Emit and adding IL code to it using ILGenerator. Now, if I call CreateType() on my TypeBuilder object, the assembly becomes locked. I want to be able to change the IL code afterwards. It is important that I can...more >>

How do you close TCP connections?
Posted by Lucvdv at 6/12/2006 5:01:09 PM
I'm using a TcpClient object: - Open: m_Connection = New Net.Sockets.TcpClient m_Connection.Connect(IPAddress.Parse(IP), 2101) m_Stream = m_Connection.GetStream - Close: If m_Connection IsNot Nothing Then If m_Stream IsNot Nothing Then m_Stream.Clo...more >>

Compiling with /clr option dramatically enlarge lib size.
Posted by dovgani NO[at]SPAM hotmail.com at 6/12/2006 12:40:54 PM
I have an unmanaged MFC project. The output is static lib. I would like to compile using /clr option. The native lib size is 64 megs and with /clr and /O1 options is 940 megs. Is it possibly Metadata enlarge size so dramaticlly? And I would like to know any suitable solution of my problem. ...more >>

Using NAnt RC4 to build .Net 1.1 Code
Posted by SenthilVel at 6/12/2006 12:00:00 AM
Hi I am in a conversion project of Code from .Net 1.1 -->.Net 2.0 . 1. I am going to build all my projects with NAnt RC4 version and also with VS2005 to check the affected Areas. 2. I have both the Versions of my code in my machine, 1.1 and 2.0. 3. My requirement is to use NAnt RC4 version...more >>

Readings on clr optimization?
Posted by Ole Nielsby at 6/10/2006 12:17:08 AM
What's the best litterature on how the clr optimizes things, low-level? I'm writing a continuation-style interpreter for a Lisp-flavour language, and I feel my attempts of tuning it for performance are shots in the fog. Things I'd like to know are: - how clever is the clr at inlining vir...more >>

use SerialPort with raw device names -or- cancel pending read on FileStream
Posted by Ben Voigt at 6/9/2006 11:10:47 AM
The SerialPort class provided by Microsoft has some code like: SerialPort.PortName set accessor if (value.StartsWith(@"\\", StringComparison.Ordinal)) { throw new ArgumentException(SR.GetString("Arg_SecurityException"), "PortName"); } S...more >>

Programmatically analyzing IL code
Posted by robert_m_hooker NO[at]SPAM bigfoot.com at 6/9/2006 8:00:10 AM
Hi All, I'm attempting to write a very basic 'Assebmly standards & policies checker' for in-house use. This tool would open an assembly, and scan it for a handful of specific conformance issues we need to adhere too. Essentially, I'd be scanning the assembly for specific groups of IL codes an...more >>

GC and the listeners added to Trace/Debug class
Posted by MoonStorm at 6/8/2006 6:07:59 AM
As far as I know, GC won't touch object references in use. I was susprised to see that one of my trace listeners got disposed at some point during the life of the application. It's true I am not holding any references to my trace listener (because I don't need to), and besides, I guessed that ...more >>

What is the GC Generation Threshold for .net 2.0
Posted by Michael Nemtsev at 6/8/2006 4:27:41 AM
What are the GC Generation thresholds for .net 2.0? For .net 1.0 it was 0.256, 2, 10 mb ...more >>

Obsolete Errors and Deprecated Errors using Dotnet Framework 2.0
Posted by SenthilVel at 6/7/2006 5:17:10 PM
Hi I am building my Dotnet Framework 1.1 C# code with VS2005 (Framework2.0) . For this process i use NAnt 0.85 RC4 Version. During the Build i get errors like : 1. "Method is Deprecated" ..change to ...... 2. When i Open VS2005 and build i get errors like " Method is Obsolete" ... ...more >>

ICeeFileGen
Posted by Dave.NET at 6/7/2006 4:16:02 PM
I noticed in the documentation, http://msdn2.microsoft.com/en-us/library/ms404463.aspx, that ICeeFileGen has/will be deprecated in the future. What should we be using, from unmanaged compiler code, to create CLR PE files? Dave.Net ...more >>

Obsolete Errors using Dotnet Framework 2.0
Posted by SenthilVel at 6/6/2006 7:51:09 PM
Hi All I am Trying to build my 1.1 framework code with 2.0 framework using Visual Studio 2005 installed in my machine. when i tried doing doing so , i get errors like : " Error 1 Warning as Error: 'System.Runtime.InteropServices.UCOMITypeLib' is obsolete: 'Use System.Runtime.InteropServ...more >>

Embedding a resource at runtime
Posted by Dave Brown at 6/6/2006 11:31:23 AM
Hi there. Does anyone know if it's possible to embed a new resource into an assembly at runtime as well as update an existing (assembly) resource. Any assistance would be appreciated. Thanks. ...more >>

Reflection question about PropertyInfo
Posted by AdamM at 6/5/2006 9:11:19 PM
Hi all, How do you take a PropertyInfo and get an instance of the object described by it? For example, I want to get the actual instance of the object described by "pi" in the snippet below (not the object's value like what GetValue() provides, but a reference to the object itself): Member...more >>

How to get current running values from .LocalVariables in .NET 2.0?
Posted by Lou Zher at 6/5/2006 10:52:11 AM
We've got a project that needs to be able to see the current running values from the objects returned back by .LocalVariables. How is this done? LocalVariables only appears to give us the types of the method vars. -LZ ...more >>

"Managed Debugging Assistant 'LoaderLock' has detected a problem in
Posted by mohan NO[at]SPAM tek.com at 6/4/2006 11:32:52 PM
Hi all, I have ported my VB.Net project from VS2003 to VS2005. I am facing two issues while running my applications: Issue1: I am calling some managed dlls (developed in C#) from my Vb .net . Whne I debug the code,Iam getting the following Error message. "Managed Debugging Assistant 'Loa...more >>

getting value from Dropdown and setting it as TextBox Text without Postback
Posted by Charleees at 6/4/2006 10:14:11 PM
Hi all, I have a DropDown and a TextBox just bekeow it... I have to get the selected value from dropdown and set it as textBox Text.. The thing is i have to do this Without PostBack..... Is there any java script to do this functionality... please reply.. Thanks in Advance.. San...more >>

Getting and changing File Summry information
Posted by Hiten at 6/3/2006 5:13:01 AM
Hi, I am trying to find a way to get and change file summary information. I tried using FileInfo class, but it doesn't give me information such as "Author,Title,Rating" etc. Is there a way to get and change these information using .NET libraries? Sample would be a great help... Thanks...more >>

Form resource files
Posted by Dave Brown at 6/2/2006 1:08:42 PM
Hi there, Given an arbitrary ".resx" file (not ."resources"), does anybody know how I can identify that this file actually contains a Windows form (in code). Once identified, I then want to collect information about the form and all its controls. Presumably I would want to read this file in...more >>


DevelopmentNow Blog