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 > july 2003

Filter by week: 1 2 3 4 5

New string or object reference?
Posted by Célio Cidral Junior at 7/31/2003 3:04:21 PM
Hello! See the code below: public class Customer { private string name; public Customer(string name) : base() { this.name = name; } public string Name { get { return this.name; } set { // some implementation ... } } } publi...more >>


How do I create a dll containing images? (and how to access them)
Posted by Andrew Stephens at 7/31/2003 4:43:12 AM
Hi all I'm using VS.Net 2003 and would like to create a DLL that contains a series of images used by my app. I would need to be able to access them by name, returning (say) an Image type. If I add a new image then I can simply send out the updated DLL without recompiling the whole app. I ca...more >>

Error Reading Configuration Settings
Posted by Guogang at 7/30/2003 3:49:01 PM
Hi, I am deploying a project to a laptop. It works fine on my development computer, and I have tested once a few weeks ago. However, this time, the program can not start at all. After some digging, I find that it stops right at the following line (this line is part of the function called by...more >>

Rule for copying between DataRow cells of different types?
Posted by Bert Hyman at 7/30/2003 6:12:20 AM
If I have a DataRow with a column of type DateTime and another DataRow with a column of type string and do a simple assignment from a DateTime cell to a string cell, what should happen? I ran across this case just yesterday where someone had coded drA[string-type-cell] = drB[DateTime-type-c...more >>

annoying popup message at almost every save
Posted by Thomas Zeng at 7/29/2003 4:05:05 PM
Hello, Does anyone know why I keep getting this msg everytime I save a *.cs file? "This file has been modified outside of the source editor. Do you want to reload it?" Thank you very much ...more >>

AppDomain address space...
Posted by Nadav at 7/27/2003 7:24:03 AM
Hi, I Wonder how does AppDomain memory address-sapce is mapped ? is it the same addres space the containing process have ??? Does changing a function body using 'ICorProfilerInfo::SetILFunctionBody' effects all AppDomain's in the same process ??? Thanks in advance, Nadav Rubinste...more >>

Server v Workstation
Posted by mk at 7/27/2003 4:21:18 AM
Hi, Regarding the mscorsvr v mscorwks libraries, I was wondering how we can ensure that we use the server build for our target environment. We develop on single cpu workstations, but we will deploy to several multi-cpu servers (4-way and 8-way) as a result we need to ensure that we are g...more >>

Strange: impossible to catch the exception
Posted by Oleg at 7/25/2003 6:29:41 PM
Hello, I get a very strange thing. Some form generates an exception during load. Application has a catch block to deal with it. Everything is ok if application runs under Visual Studio's debugger (exception is caught and remains to work). If I run the application not under Visual Studio the...more >>



Stack Frame Object Instances?
Posted by mark NO[at]SPAM corporatedigital.com at 7/25/2003 5:23:02 PM
Can you retrieve a calling object's instance from the stack via reflection? So far I've only been able to traverse the stack and get to a Type of the calling routine (using StackFrame.GetMethod and then interogating that MethodBase object). What I'm trying to do is to interrogate a property on...more >>

Events: Do they lead to memory leaks?
Posted by Rahul Kumar at 7/25/2003 10:09:31 AM
Hi all I have the following scenario in brief: There are two classes EventRaiser and EventConsumer. The EventRaiser raises an event and EventConsumer listens to it, by adding its handler to the event chain of the EventRaiser's event delegate. My question is: If the EventConsumer goes out of co...more >>

AppDomain Iteration
Posted by Nadav at 7/24/2003 3:06:42 PM
Hi, I wonder is it possible to iterate through all AppDomains in a certain Process ( using un/managed C++ ), if so, is it possible to attach to a certain AppDomain ??? Thanks in advance, Nadav, Sofin l.t.d. Look at a greate new tool I have developed at: http://www.ddevel.com/...more >>

Does static members consume more memory?
Posted by Célio Cidral Junior at 7/24/2003 9:09:48 AM
Hello! I am a newbie in CLR. Somebody said to me that static members consume more memory than instance members because they stay in memory along all the application's lifetime. Is that true? What are the technical details about that? Thank you in advance. -- Celio Cidral Junior WEG ...more >>

SMTPMail - problems with example code
Posted by Dennis Redfield at 7/23/2003 11:01:39 AM
I used the console app example code from MSDN for sending smtp mail. This example code uses the line: using System.Web.Mail; When I attempt to compile I error out on the "using System.Web.Mail" line with the message that the ".Mail" space does not exist under System.Web. Looking at the docs fo...more >>

Unhandled exception in FileStream when writing to a full disk - bug in framework?
Posted by amit NO[at]SPAM notalvision.com at 7/23/2003 4:30:59 AM
Hello, I just ran into a weird problem with FileStream. The problem occurs in the following scenario: - I create an instance of FileStream and use it to write to a disk with a just a small amount of free space. - When the disk gets full, FileStream throws an IOException. I catch and proces...more >>

SmtpMail does not send to external addresses
Posted by Nick Carter at 7/22/2003 3:29:10 PM
I am trying to send emails using the SmtpMail component. All works well as long as the MailMessage.To address is an internal email. If it is an external email it gets bounced back to the MailMessage.From address saying that it was undeliverable. This only happens when the SMTP server is Exchange...more >>

Need explanation on creating a custom collection.
Posted by Ken Varn at 7/22/2003 10:51:22 AM
I want to create a custom collection class that is similar to something like the System.Windows.Forms.Control.ControlCollection. I notice that this collection implements IList, ICollection, IEnumrable, and ICloneable. I have tried to create a similar class, but one thing that I cannot seem to...more >>

**Bug** in jitter
Posted by Lee Alexander at 7/21/2003 4:47:15 PM
Hello, I have spent the past four days nailing down what looks to me like a bug in the jitter. Problem ~~~~~~ When my program is run without the debugger attached in release an object is disposed of whilst execution is still in one of it's methods. I have a C# application talking to a manag...more >>

Stopping JIT inlining
Posted by Lee Alexander at 7/21/2003 12:12:28 PM
Is there a attribute I can use on a method to tell the JIT to not inline the method? Or failing that to stop inlining altogether whilst not in the debugger?? Regards Lee ...more >>

Memoy used and minimize events
Posted by Fabio Cavazzuti at 7/21/2003 10:07:46 AM
Hi all, what happen to the memory used by a WinForm application when I press the minimize button ? On .Net Framework 1.1: create a C# win form project, build and run: memory used = 22 MB (hops !) minimize it: memory used = 750 kB maximize it: memory used = 1.7 MB I'm going sl...more >>

How can AppDomain access each other?
Posted by Ken at 7/20/2003 10:22:01 PM
For example in an AppDomain to access object in other AppDomain. ...more >>

why not use "ldc.i4.0" instead of "ldnull "??
Posted by ±èÀçȲ at 7/20/2003 4:30:05 PM
what's the mean this article..please null == ldnull(MSIL) /* Rationale: It might be thought that ldnull is redundant: why not use ldc.i4.0 or ldc.i8.0 instead? The answer is that ldnull provides a size-agnostic null -analogous to a ldc.i instruction, which does not exist. However, even if ...more >>

An unhandled exception of type 'System.Security.SecurityException' occurred in Unknown Module
Posted by Gilles at 7/18/2003 2:22:51 PM
Hi there, I just wrote an application and it works fine when it runs on a local computer. But I have the following error message when I try to run the application when it's located on a remote server. An unhandled exception of type 'System.Security.SecurityException' occurred in Unknown Modu...more >>

Garbage Collection Question
Posted by Michael Billard at 7/18/2003 2:15:42 PM
I'm writing a Windows application using C#. Let's say I create MyObject, and MyObject creates MySubObject, holding the reference in m_SubObject. MySubObject has an event, MyEvent, and MyObject implements an event handler for it. Now let's say I have a form called MyForm, which consumes MyO...more >>

.NET executable load process
Posted by colin.desmond NO[at]SPAM logicacmg.com at 7/18/2003 7:57:22 AM
Is there a good in depth (web) reference describing the process that the CLR goes through when it runs a .NET executable. In particular we are interested in when and how the .exe file is checked and loaded into memory and all the assemblies (both application specific and windows/.NET) are load...more >>

Once an object turns to Generation 2, It will not be collected any more?
Posted by Ken at 7/17/2003 10:24:25 AM
Once an object turns to Generation 2, It will not be collected any more? Will or When GC try to collect Generation 1 and Generation 2? Thanks in advance. ...more >>

Code DOM question
Posted by Andrew Eames at 7/17/2003 7:57:53 AM
I'm trying to use the Code DOM to emit the following (C#) member extern public int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)] get; } but I dont see how to get either the extern keyword or how to apply the attribu...more >>

Finalize method may not be called when app terminates?
Posted by Ken at 7/16/2003 2:56:07 PM
I have read artical about GC written by Jeffery Richter. It said that Finalize method may not be called when app terminates? Why? ...more >>

mscorsvr Ensure How?
Posted by stevec NO[at]SPAM atomic9.net at 7/14/2003 2:26:35 PM
I just read through the ".NET Performance Tips" at http://msdn.microsoft.com/netframework/using/Understanding/perf/default.aspx?pull=/library/en-us/dndotnet/html/dotnetperftips.asp which seems to be a newer variation (with a different manager/author) of http://msdn.microsoft.com/library/d...more >>

What's the useage of Multi-AppDomain?
Posted by Ken at 7/14/2003 9:18:42 AM
I know I can create new domain, and run assembly in it. But Is that useful? Anyone can tell me? Thanks in advance. -- ken@occultsoft.com File, Disk tools -- http://www.occultsoft.com/ ...more >>

managed assembly dependent on unmanaged dll
Posted by ravdog13 NO[at]SPAM yahoo.com at 7/12/2003 9:34:06 AM
Following is my scenario: I have a c# assembly that has a reference to managed C++ assembly. The managed C++ assembly inturn acts in part as a wrapper to unmanaged (native) c++ dll. (The unmanaged c++ dll's *.lib is included while building the managed c++ assembly) Question: How do I d...more >>

Why does call to Process.GetCurrentProcess() access the floppy drive?
Posted by Ken Varn at 7/11/2003 4:51:47 PM
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is the log: 1 4:31:10 PM BlockedConfigAp:1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes: Any Options: ...more >>

Turning off .NET Verification?
Posted by Ben Rush at 7/10/2003 2:52:51 PM
I found some free time (yeah!) today and started going over some chapters in "Applied Microsoft .NET Framework Programming" by Jeffrey Richter and found the following - "... Of course, an administrator could turn off verification and allow the managed code to make calls to unmanaged functions....more >>

Execute an assembly in a new process?
Posted by d0wsdkn02 NO[at]SPAM sneakemail.com at 7/10/2003 8:27:10 AM
I'm trying to launch a smart-client app by it's URL. This works great: AppDomain domain = AppDomain.CreateDomain( "SmartClientApp" ); domain.ExecuteAssembly( @"http://localhost/SmartClient/SmartClientApp.exe" ); except that I want it to execute in a separate process. Something like: Proc...more >>

How can I uniquely identifies a computer?
Posted by Ray at 7/9/2003 4:46:25 PM
Hi all, How microsoft uniquely identifies a computer? Just like activitate the Windows. Thanks. Ray ...more >>

JIT Compiler
Posted by drv at 7/9/2003 9:36:29 AM
Are there different versions of the JITTER for each Windows OS (9x,2000,XP)? If I use NGEN to JIT compile my code, can that .exe be used on different platforms (9x,2000, XP)? Thanks Drv ...more >>

How to "join" existing AppDomain?
Posted by mmalick NO[at]SPAM earthlink.net at 7/9/2003 8:47:56 AM
Is there a way to join or hook into an existing AppDomain? I guess I'm looking for something similar to AppDomain.GetAssemblies, but that would probe the system and return references to all the AppDomains currently running on the app server so a client could tie into that AppDomain, load assemb...more >>

ContextBoundObject explanation
Posted by Calvin at 7/8/2003 11:36:26 AM
Hello, I have a class A inherit from ContextBoundObject. I create an instance of this object. I use VS.NET to debug the program. After the object is created, I found out the type of the object is not A, it's __TransparentProxy! While this doesn't suprise me sin...more >>

Regarding CLR Runtime Host for Windows Service.
Posted by Uma Manoj at 7/8/2003 10:30:24 AM
Hi, I have a query about hosting the windows service in C# in Server mode of the GC. I have a solution to start an exe in server mode. Can anyone suggest how to start your windows service in GC Server mode. Please respond if any of you have a solution to the problem. Thanks in Ad...more >>

Handling System._ComObject
Posted by Varun Singal at 7/7/2003 7:35:03 PM
Hi I am calling .NET components from my Classical ASPs. For this I strong named my assemblies, then registered them in the resistry ( using RegAsm), and put them in GAC (using GacUtil) . Everything worked fine and my ASPs were able to call and use them. The problem comes when my ASP code as...more >>

Where does the ClrVersion string come from
Posted by Bhavin at 7/7/2003 12:47:38 PM
When I do HttpBrowserCapabilities.GetClrVersion() The browser( IE ) returns me the Version of .Net I am running my app on. Where does this Version String come from. I want to disable / change it so that even if my machine has the .net Version I want to make it look as if it doesn't just...more >>

fatal error CS0007: Unexpected common language runtime initialization error --
Posted by Polo Lee at 7/7/2003 9:32:20 AM
Dear Friends . My framework seems having some strange problems now. Even the compiler is out of functions. for example, I had written a very simple ¡yHelloWorld¡z Program. but the compiler tell me as below. E:\>csc HelloWorld.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052...more >>

Object Instantiation
Posted by Hanuman at 7/7/2003 6:19:54 AM
I'm trying to understand the details of calling "New" on a managed object. In the COM world, calling "New" caused the following superset of events: 1. The SCM resolves the path to the class in the registry by using its CLSID. 2. The object's class factory creates its instance in memor...more >>

How to obtain argument values in runtime?
Posted by mensikd NO[at]SPAM seznam.cz at 7/7/2003 4:55:52 AM
Hi, can you please help me by obtaining methods argument values in runtime? I have this construction: --- source code --- try { someobject.somemethod(someargumentvalue); } catch(Exception exc) { ShowStack(exc) } public static void ShowStack(Exception exc) { StakTrace loTrace ...more >>

.NET CLR Profiler
Posted by carbon_dragon NO[at]SPAM yahoo.com at 7/6/2003 7:05:17 AM
I heard about Microsoft's .NET CLR Profiler at TechEd and downloaded it. It is capable of showing all kinds of stuff, but I can't say I really understand what it's trying to show me. I'm reading as much as I can about the profiling API and other profilers trying to get some insight into what the...more >>

Clear bindings on dispose of a control to allow GC to collect?
Posted by Niall at 7/4/2003 11:52:34 AM
I've been using the .Net Memory Profiler to chase down a memory leak in our application. A custom control we have written was not being collected after the form it was on was closed. Because the form tied to an event on that control, the whole lot wasn't being collected. Using the profiler, I ...more >>

ILDasm and Reflection
Posted by Antonio Linares at 7/4/2003 9:14:30 AM
It is easy to check that ILDasm has not been built using .NET (just try to dissassemble itself), so ILDasm.exe may not be using the Reflection API. The question is: even in the case that ILDasm would use the Reflection API, how is it possible to get this: (as generated from ILDasm) ldstr .....more >>

Return string from Fortran Dll back to C#.
Posted by Alex Dong at 7/3/2003 5:45:54 PM
Dear all: My C# program need a string returned from a Fortran Dll. The Fortran Dll is like this: SUBROUTINE REDO(s) !DEC$ ATTRIBUTES DLLEXPORT::REDO, C CHARACTER*(*) s !DEC$ ATTRIBUTES REFERENCE :: s s = 'Let them talk, now!'C END And I use C# PInvoke to call it, the client code lik...more >>

Reflection - Saving an assembly in ASP.NET
Posted by Don King at 7/3/2003 1:54:47 PM
I am trying to save an assembly in the bin folder of an ASP.NET application using the AssemblyBuilder.Save() method. But when I call the save method, and specify the file name, it saves in the C:\Windows\System32 directory. The method does not allow you to specify the path (throws an exception)....more >>

Catching FileNotFoundException when unable to load an
Posted by Prashanth Uppunda at 7/2/2003 10:55:49 PM
Hi, I want to catch FileNotFoundException in case my application is unable to find a required assembly file, for logging a error message to my log file. Is it possible to handle this exception ? I treid catching this exception in Main(). But it wont work! Please let me know if any one h...more >>

data between applications.
Posted by Ville Pirhonen at 7/2/2003 2:27:23 PM
here is the scenario: I have windows service and "standard" windows forms applications. what kind of methods there is to share data between those applications? Applications will be in same machine, so any remoting is futile. Are there similar stuff like shared memories in linux in .Net framework...more >>


DevelopmentNow Blog