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

Filter by week: 1 2 3 4 5

Creating your own CLR host question
Posted by DaveMM at 9/30/2003 11:04:45 AM
We have run into an issue with the garbage collection routine in the mscorwks.dll which was chosen by the CLR. We would like to use the mscorsvr.dll but in order to do so without resorting to an unsupported setting we must cretate our own CLR host. Well there are examples but we need to use t...more >>

Casting ValueType variable to primitive type
Posted by Célio Cidral Junior at 9/30/2003 10:02:16 AM
Hello. (I don't know if this is the right newsgroup to post this message, so sorry if I'm cross-posting). I am writing a base class which has an abstract property of some type. This property must be overrided and have different return types at base classes, as follows: public abstract cl...more >>

managed enumerations out of unmanaged ones
Posted by marek at 9/30/2003 2:27:39 AM
Hello All, I'm doing web app that will use very strongly classes implemented in 'unamanaged' VC++. Thus I wrap these classes with mananaged wrappers and only then I use them in C# implementation of server actions. The only thing that I cannot bite are unmanaged enumerations. Can anyone...more >>

.net equivalent of java applet
Posted by ajfish NO[at]SPAM blueyonder.co.uk at 9/29/2003 7:28:33 AM
Hi, I have a web-based application and some of the UI I want to incorporate is just too complicated for javascript. Instead of using a Java Applet, I would like to have the user download a .net assembly containing a form and run that in a browser. I'm happy for the form to run in an applet-...more >>

About TypeBuilder
Posted by xiaorun huang at 9/28/2003 5:32:50 PM
I want to create a type like delegate with Emit API. But when i want to save the assembly, it failed! I had call SetImplementationFlags( MethodImplAttributes.Runtime|MethodImplAttributes.Managed ); to set the method to runtime, but when I call the TypeBuilder instance's CreateType, It will ...more >>

Taste this correction pack
Posted by Zlatko Cmelik at 9/28/2003 9:15:41 AM
Microsoft User this is the latest version of security update, the "September 2003, Cumulative Patch" update which eliminates all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three new vulnerabilities. Install now to maintain the ...more >>

bug in Replace In Files feature?
Posted by Zeng at 9/26/2003 6:10:00 PM
I keep getting the message "Cannot access c:\myfolder\myfile.cs" even though I can check out the file then manually replace it. Everytime I use the feature to replace a string for many files, I would have to run more than 10 times because of this. Every time I run, it find new files that it can...more >>

Managed C++ potential bug: Lack of "return" statement not an error
Posted by brikelly NO[at]SPAM hotmail.com at 9/26/2003 1:05:58 PM
Hi all, With .NET 1.1, the following code does not give an error during compilation: Type* foo() { if (0) { throw 1; } } Note the lack of a possible valid return path! Typically, a C++ compiler will flag this with an error such as "not all control paths return a...more >>



DLL Hell in .NET
Posted by Allan Wong at 9/25/2003 8:57:34 PM
What are the under-lying DLLs or libraries that .NET is sitting on which after installing another program will cause the entire .NET Framework to fail? ...more >>

.NET String class and ASCII NUL character question
Posted by Brian Quinlan at 9/25/2003 12:07:40 PM
Hi, I've encountered a problem when using the String class in C#. Strings seem to be truncated at the first NUL character. Am I correct? Cheers, Brian ...more >>

DEVPATH is not set. Falling through to regular bind.
Posted by Jim at 9/25/2003 11:51:19 AM
I have configured my machine.config file to have the <runtime> <developmentMode developerInstallation="true"/> </runtime> section and defined the DEVPATH as follows: DEVPATH=D:\Development\VBInterop\HW.NET\; What would cause the log viewer show that DEVPATH is not defined? It...more >>

HttpWebResponse's GetResponse() hangs and timeouts
Posted by google NO[at]SPAM waitefamily.com at 9/24/2003 1:57:43 PM
THE CODE: I'm using an HttpWebResponse object to send an HTTP POST to a Java server I have written and are running on the same machine (for dev and testing). Here is the C# code snippet: 1 string clientAddr = "http://127.0.0.1:22225/"; 2 try 3 { 4 webreq = (HttpWebRequest)WebReques...more >>

Will TypeBuilder::DefineNestedEnum() ever appear again?
Posted by brikelly NO[at]SPAM hotmail.com at 9/24/2003 1:36:43 PM
Hi all, I'm making heavy use of System::Reflection::Emit classes right now, and I need to create an Enum within a class. However, it appears that I can only create Enums at the module level with ModuleBuilder::DefineEnum(). After an hour of MSDN and Google searching, I've found year-old...more >>

CLR Bug Report: SetFunctionReJIT deadlocks
Posted by Patrick Grawehr at 9/23/2003 5:45:21 PM
Now I'm sure: There's a serious problem inside the CLR when calling SetFunctionReJIT() on anything but the current method. Add (something like) the following code as JITCompilationStarted callback in the profiler: UINT g_testfunction=0; STDMETHODIMP MyProfilerCallback::JITCompilationStarted(UI...more >>

SetFunctionReJIT causing deadlock in the CLR
Posted by Patrick Grawehr at 9/23/2003 12:29:04 AM
I can't figure out how to use ICorProfilerInfo::SetFunctionReJIT(). Every time I call it on a functionId other than the one which has been passed to the current callback function (ie JITCompilationFinished()), the CLR deadlocks on the next invocation of the method whose function id I've passed. ...more >>

passing a struct by ref to unmanged code
Posted by codymanix at 9/22/2003 11:36:32 PM
i want to pass a struct by reference to a function in a c++ dll. the problem is that the call causes an ArgumentException in the calling c# code. i already tried to use "out" instead of "ref" there was no exception generated but i saw in the unmanaged code all fields of the struct were uninit...more >>

Can someone explain Thread.SpinWait() method?
Posted by Ken Varn at 9/22/2003 5:59:39 PM
I was looking at the docs for Thread and can't understand the difference between Thread.Sleep and Thread .SpinWait. What exactly does SpinWait do? The MSDN docs are very general on this one. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. varnk@diebo...more >>

-- CLR : Garbage collected before Object is Invalid --
Posted by Mani Subramanian at 9/22/2003 5:53:18 PM
Hi, I am running into situations where the objects in my application become invalid in the course of the run. I am pretty much sure about it, as If I run the sample in the loop with a delay then it works fine, but when I run it in a tight loop it gives the exception (like ivalid object...more >>

Want to use GC with VB6.0 application
Posted by Salahuddin Khan at 9/22/2003 2:18:06 AM
I have some applictions built in VB6.0 by using ADO Technology. For performance increase I want to use Garbage Collection utility. Can any one help me in this regard. Regards Salahuddin...more >>

User friendly UI via system/screen log font
Posted by Tony at 9/21/2003 10:59:44 AM
Hi all, I've been researching MSDN and news forums for the past few days trying to achieve a more user friendly UI, similar to what MS applications (and others) do with regards to using system display settings. For example, MS Outlook uses the system/screen icon log font (established under the...more >>

HELP! Unmanaged memory management from within managed code
Posted by arthurmnev NO[at]SPAM yahoo.com at 9/19/2003 8:17:57 PM
When kernel/crtdll/msvcrt memory allocations are p/invoked from managed (C#) code; where exactly is that memory allocated? Does "static" memory allocation made by C++/C runtime library functions will cause memory fragmentation within CLR's heap (and thereby possibly reduce GC's efficiency). -...more >>

Premature collection of objects with live references in Framework v1.1.4322
Posted by Laurent_Thérond at 9/19/2003 3:49:47 PM
Hi, I have a C library making callbacks to methods of CLR- based objects. Because (maybe) these CLR-based callbacks never appear to be invoked from the CLR standpoint, the garbage collector assumes it is fine to collect their arguments. In other words, objects with live references are ...more >>

About Assembly
Posted by xiaorun huang at 9/19/2003 1:34:18 PM
How can I add some extern assembly reference to an assembly I generate in program ? I use program to generate a assembly, when i see its MANIFEST with ildasm, it has only ..assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // ..z\V.4.. .v...more >>

Customizing a Runtime Callable Wrapper
Posted by Ruxo Zheng at 9/19/2003 1:19:11 AM
I've tried to customize the Execute method of ADO Command from its generated DLL (by Tlbimp.exe). The original code of the Execute method is: .method public hidebysig newslot virtual instance class msado27.Recordset marshal( interface) Execute([ou...more >>

dll dynamic invocation
Posted by Andrea at 9/18/2003 3:20:27 PM
hello everybody, I have to invoke a function defined in a c dll (unmanagerd dll) from a c# program, but I don't know the dll name at compile time. How do I declare and invoke this function using LoadLibrary and GetProcAddress (GetProcAddress returns a function pointer!) ? Any idea ? Any cod...more >>

DynamicInvoke & Asynchronous
Posted by kulwant.bilkhoo NO[at]SPAM xansa.com at 9/16/2003 11:00:29 AM
Is it possible to call Delegate.DynamicInvoke Asynchronous, if so how does one go about doing this. Many Thanks...more >>

Garbage Collection and releasing memory
Posted by Achim Dulog at 9/16/2003 3:05:09 AM
Hi all, we're having developed a .NET Windows application in C# based on the .NET Framework 1.0. This MDI application consists of several complex WinForms dialogs and therefor it consumes an huge amount of memory resources. When closing a WinForm dialog I imagined that memory occupied by ...more >>

Fine control over type instantiation
Posted by Ben Blair at 9/15/2003 2:38:19 PM
Hi All, I'm looking for a way to cause type instantiation to call a custom class factory instead of having the CLR create an instance of the type on its own. Specifically, I need to return a subclass instance when a new base class instance is requested. A simple class factory pattern ...more >>

Is socketbuffer empty?
Posted by Robert A. van Ginkel at 9/15/2003 11:00:49 AM
Hello Fellow Developer, This looks like a long mail, but at the end of this post is my socket wrapper attached. I want to make a timeout procedure that starts counting down after the socketbuffer is empty. This connection is being used to transmit data following a RFC so I cann't create a co...more >>

Compiler error
Posted by Mikko Nieminen at 9/14/2003 2:52:08 AM
Hello! Has anyone solutions for error below. I've searched possible sites and read every tech document. I've reinstalled framework(1.1) and Visual Studio (2003). -mikko- Compilation Error Description: An error occurred during the compilation of a resource required to service this reque...more >>

Build problem
Posted by Zeng at 9/12/2003 9:29:23 AM
Hello, I don't know why I'm the only one in my development team get this build error when I build the entire solution. CommonLib.dll is a binary file resulted of building another project included in the solution. Has anyone had similar problem? Thanks! ------ Rebuild All started: Project:...more >>

Are there CLR in other platform yet?
Posted by Gigi Chung at 9/12/2003 12:45:26 AM
e.g. Linux, and...if one such CLR exists, what classes does it support? I heard that the support is much fewer than that of the windows counterpart.... thx ...more >>

Why aren't unsigned types CLS-compliant?
Posted by F Vicaria at 9/11/2003 1:07:20 PM
Any explanation would be appreciated... -- Regards, Fernando ...more >>

Memory leaks with unamaneged com objects
Posted by Calm Interop at 9/10/2003 11:07:43 PM
Hi, I am getting a strange scenario where I am using RCWs for CDO and ADO in my managed classes. When the managed objects get destructed, it seems the referenced unmanaged resources are stacking up in memory for ever. Does'nt GC take of those too? Please note that I am using these unma...more >>

Problem serializing custom exception type deriving from System.Exception
Posted by James Alexander at 9/10/2003 7:16:17 PM
I've created a new exception w/ a few properties specific to an app I = want this this exception to be a part of. Whenever I attempt to = serialize the exception I get something resembling the following error:=20 System.InvalidOperationException: There was an error reflecting type = 'StoneAge....more >>

How to tell if an assembly in download cache has been updated?
Posted by d0wsdkn02 NO[at]SPAM sneakemail.com at 9/10/2003 11:49:40 AM
Tried this in m.p.framework a couple of days ago with no response. I'll try here: I'm loading an assembly from a URL using Assembly.LoadFrom(). Is there any way to tell if the current version of the assembly already existed in the application download cache. I need to do an expensive oper...more >>

Poosible to runtime modify an existing class method?
Posted by omtslug NO[at]SPAM yahoo.se at 9/9/2003 11:45:13 PM
Hi! Does anyone know if it's possible to modify a method at runtime? I've searched around and all that I find is the possibility to extend classes at runtime, adding properties, methods etc. (TypeBuilder, MethodBuilder, reflection etc) What I actually want to do is to inject debug support d...more >>

System.Net.Sockets.Socket.Blocking = True doesn't work
Posted by Robert A. van Ginkel at 9/9/2003 4:29:21 PM
In news:OZ0W9RsdDHA.2432@TK2MSFTNGP10.phx.gbl... I ask the question how I can see if all the data is on the other side of the connection. I got as answer that I should use the blocking property. I tried this I don't see any diffents, I am sending 10Mb and the Send/BeginSend command doesn't wait ...more >>

Socket still sending?
Posted by Robert A. van Ginkel at 9/9/2003 1:21:12 PM
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data and then fires a datareceived event. Within the waitingloop there is a timeout function, but I want...more >>

ExecutionEngineException & .NET Remoting
Posted by Bryan at 9/9/2003 12:00:36 PM
I'm trying to web deployment an application which utilizes .NET Remoting and I'm getting an intermittent 'System.ExecutionEngineException' exception (top-level call stack shown below). The exception does not consistently appear in the same location; as a result I feel that it may be a CLR...more >>

invoke on UI thread
Posted by Paul at 9/9/2003 7:43:42 AM
I understand the notion that a UI thread should be responsible for managing the UI elements; therefore, worker threads need to call invoke. I don't understand the technical reason for this. What is it about the Win32 message loop that doesn't like worker threads to update the UI and why...more >>

Writing in .config XML application configuration file.
Posted by msnews.microsoft.com at 9/8/2003 5:33:02 PM
Hi all, I was trying to find an easy way to write in the standard configuration (like app.config) xml-based files. I found classes that can be used to read this information (in System.Configuration) like the ConfigurationSettings.AppSettings property, but I was not able to find anything to wr...more >>

Assembly 'assemblyname' could not be uninstalled because it is required by other applications.
Posted by Ice at 9/8/2003 3:35:17 PM
All - I just had to go through the painful process of manually deleting directories via the command prompt. Has anyone figured out what causes this problem and how it can be resolved? Thanks. ice ...more >>

Version Management
Posted by Jean-Francois Cantin at 9/8/2003 10:32:43 AM
Hi , we'd like to manage our dll's versions. When we change version in the assembly file, it looks like if we have to rebuild all dependents files, even if the modified file still compatible. It seems we have to rebuild all the dependencies of the modified file, and the dependencies of the de...more >>

How to get CLR version in runtime
Posted by Skrenek at 9/7/2003 5:20:26 PM
Can I get CLR version in runtime (just for the demo purposes)? Thanks Martin Skrenek ...more >>

Access Managed Object From Unmanaged Code
Posted by Bruce Farmer at 9/5/2003 7:06:48 PM
I am having problems accessing a managed object from unmanaged code. Specifically, I have a .NET forms application with a web service proxy. The forms application links to an unmanaged DLL which uses callbacks to receive data via TCP. The data received in the callback must be passed to ...more >>

Deserialization "cannot find the assembly" when hosting exe from own loader
Posted by Vadim Berman at 9/5/2003 6:35:25 PM
I use the simple loader that hosts the managed application (I need this to load the "svr" version on a server). I use the code suggested by Steven Pratschner [MS] in news article http://groups.google.com/groups?selm=%23nx5kl9HDHA.2256%40TK2MSFTNGP11.phx.gbl. The problem is, I cannot now deseri...more >>

How long has the machine been running.
Posted by Leigh at 9/5/2003 6:02:02 PM
I would like to find out how long my server has be up for. Is this possible using the .NET? Regards ...more >>

Memory Management
Posted by Manish Parikh at 9/5/2003 5:12:26 PM
Hi All A Show Stopper problem in our application we have a DLL which exposes some objects collections in terms of get and set properties. The objects have very heavy memory footprints (beyond 2gb) we want to have the funcionality that if the memory usage goes beyond a certain threshold lim...more >>

Exceptions in event firing
Posted by André_Baptista at 9/5/2003 2:06:25 PM
Hi all. This case was tried in VC++.NET. I subscribe a .NET event from a remote client app (just=20 add it up to the event delegator). My server app fires the event and everything goes well=20 across the network. Now imagine the client app suddenly goes down (either the=20 app misbehaves ...more >>


DevelopmentNow Blog