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
May 2008
June 2008
all groups > dotnet clr > december 2005

Debug vs. Release code.
Posted by Ken Varn at 12/29/2005 8:43:44 AM
If compiling a C# .NET application, what is the main difference between a debug build vs. a Release build? Either way, the IL can be disassembled back into native source, so I don't understand the difference in the two types of builds. Why shouldn't a debugger be able to debug release code jus...more >>


Running applications when both Framework version1.1 and 2.0 is present
Posted by SenthilVel at 12/28/2005 12:04:20 PM
Hi I have my application developed/ compiled in version 1.1 framework. in some of my machine when i have both 1.1 and 2.0 this caused me some remoting errors. so to resolve this error i have added <startup> <supportedRuntime version="v1.1.4322" /> </startup> My Dou...more >>

Threading in .NET
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 12/28/2005 5:46:31 AM
Hi all, I have a problem regarding the threading issues in .NET. Actually I have a application in which i execute a process by invoking the thread in the background and at the same time I want to display a modal dialog which will only block my UI. It doesn't have to do anything with my thread...more >>

Memory allocation strategy
Posted by freka586 at 12/28/2005 2:59:02 AM
I am considering different options of memory allocation for a workstation application, and would LOVE some feedback and thought.. The application goes through the following life-cycle: 1) Started. Low memory usage. 2) Loading data. Massive memory increase. 3) Working with loaded data. Lo...more >>

event objects and condition variables
Posted by sikander at 12/27/2005 6:42:02 AM
Hi I am a bit confused about the use of semaphores, condition variables and event objects. Can anyone throw some light....more >>

Unhandled exception in .NET runtime
Posted by Arulvendan at 12/23/2005 3:59:01 AM
We have developed a windows service in .NET 1.1 that uses Serviced components for handling transactions. Some times, the service stops unexpectedly by logging the following information in the Event log. Common Language Runtime Debugging Services: Application has generated an exception that ...more >>

.net memory leak problem in exe
Posted by anandav2001 NO[at]SPAM gmail.com at 12/22/2005 1:51:52 AM
Hello developers, I have created an executable(system tray application) in VS.net 2003 using VB.net. My app was taking 30 MB memory(since some web services call are there which happens for each 10 sec checking internet is available or not). Inorder to reduce huge memory consumption, what i ...more >>

Gee, I don't know
Posted by Jon Shemitz at 12/21/2005 7:10:19 PM
With generics, each new constructed type may need to define new methods. On the first reference type, or on each new value type you bind to an open class. Is each new method laid out when the type is constructed, or are new methods generated just before they're first called? -- <http://w...more >>



2.0 Deployment - How to run .NET app with no Framework 2.0 install
Posted by maxima at 12/21/2005 4:51:02 AM
Hi guys, I am doing winforms app using ver 2.0. My boss is concerning that about 40% of our end-users wont be willing to download and install Framework 2.0 to run the app. I am looking into thinstall.com and remotesoft.com for tools to create one-file installation for my app or somethin...more >>

Add-ons
Posted by Mantas Miliukas at 12/20/2005 3:19:57 PM
Hi, We have developed a web solution using ASP.NET. Now, there is a need of add-ons for our web solution. We want to allow third party companies write their own code and put it to our web solution. But there is one problem :) Let's say our website contains dlls of 1.0 version. The th...more >>

MFC dll and CLR 2.0
Posted by Frank Samuel at 12/20/2005 12:28:35 PM
Hi, we found a problem with the way managed MFC dlls work: CWinApp::InitInstance is sometimes just called when the managed initialization is done (cctor). This is the case if one of the files using /clr is including afxdisp.h The problem is that the managed initialization is just executed ...more >>

Office - Win98 - CLR
Posted by Eric at 12/20/2005 4:32:35 AM
Hello, I am trying to help a friend getting back control of her laptop. She's using her laptop at home but also at her job (previous/old job) where some restrictions seemed to have been setup through .NET framework. She does not seem to have write rights to her own folders especially using Of...more >>

How To Get HResult From IOException
Posted by Rich S. at 12/19/2005 12:25:03 PM
Hello, The HResult code in an IOException is a Protected member. How on Earth am I supposed to read the HResult if it is protected? My program needs to determine the exact cause of any IOException that occurs in the WebRequest class. How can I do this if I can't access the HResult fiel...more >>

EnumDomains in Another Process
Posted by markarichman NO[at]SPAM gmail.com at 12/19/2005 12:06:42 PM
How do I enumerate the running AppDomains in another process, given the PID of that process? ...more >>

Problems with Assembly.GetManifestResourceStream( type, string )
Posted by Rowland Shaw at 12/19/2005 3:59:02 AM
I have an object "retval" of type "MyCompany.Department.MyCrystalRpt" (from the watch window:) retval.GetType().ToString() "MyCompany.Department.MyCrystalRpt" String This report is compiled to be part of a class library, and even has it's resources compiled in correctly: (from the watch wind...more >>

File ACL Permissions and setting inheritance?
Posted by Rick Strahl [MVP] at 12/19/2005 1:23:30 AM
Hi all, I'm trying to use the new ACL functonality in .NET 2.0 to set permissions for a Web application in a pre-installer configuration app. I seem to be able to set the permissions and add users to the ACLs ok, but I can't figure out how to set the inheritance for the directory. There...more >>

Impersonation question for network resources
Posted by Ben Fidge at 12/13/2005 3:58:02 AM
Hi I have a small WinForms app that needs to copy files from a shared drive on a network. If I connect to the mapped drive using Explorer, a password dialog pops-up and I have to provide credentials with permission to access this resource on the machine where it's hosted. This is once for e...more >>

Finding only implemented Interfaces on a type
Posted by Rick Strahl [MVP] at 12/12/2005 10:38:47 AM
Hi all, I'm looking at a way to find only the implemented interfaces on a given type. I can retrieve all the interfaces easily enough, but I can't figure out a way to either filter the returned interface list or otherwise consistently check for whether the interface is implemented on the cu...more >>

Problem with signed Assembly
Posted by Karve, Ajit at 12/12/2005 12:59:02 AM
Hi, I want to sign an assembly but it is refering to an assembly, Interop.MSForms, which is unsigned assembly. Hence, I'm getting compilation error. Can anyone suggest a way out? Is there any way by which we can remove the restriction that referred assemblies should be always signed?...more >>

Memory Leak in DesignSurface
Posted by Bele din Carpati at 12/9/2005 9:30:03 PM
Seems that DesignSurface has a memory leak. Where should I report it? This can be observed by running the program bellow and push several times the <ShowDialog> and <CallGC> buttons and observe that the heap memory increase each time <ShowDialog> button is pushed. The leak can be also observed...more >>

Server Unavailable error with a mix of asp and asp.net in same application
Posted by pphadke NO[at]SPAM gmail.com at 12/9/2005 10:32:30 AM
I have an application that was originally in asp but is now moved to ASP.Net. To deploy it, I just changed the default file in IIS for the web folder to point to the new aspx file. Occasionally I see a "Server unavailable" error. There is nothing in the event log that suggests any related error ...more >>

.NET 2.0/csc.exe/SoapHttpClientProtocol hangs for 15-20 seconds (compared to .NET 1.1) under Citrix
Posted by Leon Finker at 12/8/2005 10:38:07 PM
Hi, I have a problem where creating a webservice proxy class takes from 15-20 seconds. This happens under Citrix environment. I was able to see what csc.exe is doing. I'm not 100% sure if I caught it at the right moment. Let me know if more info is needed. Here is the callstack: ntdll!Nt...more >>

CLR Profiler for Whidbey final
Posted by Bele din Carpati at 12/8/2005 9:33:06 PM
I suspect I have some memory leaks in a .NET Application wrote with VStudio 2005 final. I want to debug it using CLR Profiler but I didn't found a version that works with final version of .NET framework (Whidbey). Can someone tell me if such a version exists and where or when is expected t...more >>

Handle and memory leaks
Posted by Lucvdv at 12/8/2005 5:52:25 PM
A .Net 1.1-based service application I wrote seems to be slowly leaking memory and handles. Not enough to notice over a short timespan (normal fluctuations as it's doing it work are larger than the amount of rise), but memory use and handle count keep slowly going up. Has anyone had a similar...more >>

CLR Hosting and code execution
Posted by Carlos_Guzmán_Álvarez at 12/8/2005 10:47:42 AM
Hello: I'm trying to call a method of a class using CLR Hosting but whenn calling Invoke on the IDispatch interface of the object i'm getting E_NOINTERFACE, the method i'm tryiong to execute looks like this: public FbResultSet AddEmployeeProject(short employeeID, string projectI...more >>

Structure Memory Usage?
Posted by James at 12/7/2005 5:35:24 PM
Hi, I need help with a couple of questions, I have create and structure like: Structure byteArray Public byteA() As Byte End Structure Public ptrArray() As byteArray I have redim ptrArray(1000000) and the memory usage in Windows Task Manager shows an increase of 4MB bytes that seems O...more >>

ArgumentException and ArgumentNullException
Posted by Vagif Abilov at 12/7/2005 3:34:01 PM
....both have constructors that take two strings: ArgumentException(string message, string paramName) ArgumentNullException(string paramName, string message) This swap of arguments does not make any sense. What kind of quality control these types passed? Vagif Abilov Oslo Norway ...more >>

CLR Profiler Setup Problem
Posted by kramer.newsreader NO[at]SPAM gmail.com at 12/6/2005 2:44:34 PM
Hello. I am trying to profile a service using CLR Profiler. It seems to work just fine if I start CLR Profiler through the GUI, but the default value of OMV_PATH=c:/Windows/Temp (where the log files are written) is on a quite small partition. I tried using the command line to start CLR Profi...more >>

Interface Inheritance for IDisposable
Posted by Grafix at 12/5/2005 12:36:02 PM
All - This might be a purist question, but i want to convince my handler with a reasonable argument. Lets say i have an object *internal* to my assembly (InternalMyObject) and it implements an exposed interface (IMyObject). I want to specify that the object that implements IMyObject is ...more >>

Assembly.LoadFrom and parameterized constructors
Posted by Bill Sempf at 12/5/2005 7:18:04 AM
I want to instantiate a class at runtime that accepts a parameter, but I am currently using Assembly.LoadFrom so I am having to do without the parameter. Assembly.LoadFrom doesn't seems to support parameterized constructors (which isn't a suprise, really) but it there another way I can acco...more >>

Oracle Lite 10g R2 and .NET Stored Procedures
Posted by lottoman2000 NO[at]SPAM gmail.com at 12/3/2005 10:01:00 AM
Hello Team.. No, I am not posting in the wrong forum :). I meant to check if the MS pros have read/heard of anything about Oracle Lite 10R2 and its support for .Net Stored Procedure.. Oracle docs show that it only support java stored proc (on Windows 32 not CE), but do not show if it does not s...more >>

Choosing 32 bits vs 64 bits mode of execution
Posted by Emmanuel Stapf [ES] at 12/2/2005 12:29:16 PM
Hi, I'm on Windows XP 64 bits and I have a 32 bits .NET assembly which was compiled without the 32BIT flag, I cannot use corflags to add it because it is signed and it is not mine. Is there a way in the config file to say it has to be run in 32 bits mode instead of 64 bits mode? Thanks, ...more >>


DevelopmentNow Blog