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 2005

CLR Unable to set breakpoints
Posted by Niall at 6/30/2005 6:31:02 PM
I'm trying to diagnose the cause of excessive induced garbage collections in our app. In the past, this has been easily achieved by setting a breakpoint in System.GC.Collect and looking at the call stack. However, when I attempt to do this while attached to our application, I get the message "...more >>

Turning off "unhandled exception" pop-up window
Posted by Vinay Agarwal at 6/30/2005 7:21:03 AM
Hello, I have a Logitech .NET 1.1 application that gives an unhandled exception when .NET 2.0 is also installed on the same machine. The unhandled exception is not relevant for the application's operation (time tick is out of range). Is it possible to turn this popup off and have it select ...more >>

http errors.....
Posted by AVL at 6/30/2005 6:04:02 AM
hi, i need to write a script whcih monitors my web application.... can anyone let me know the way to capture the error whcih i get whenever i'm uable to connect to the server.. ...more >>

job scheduler in .net
Posted by AVL at 6/30/2005 12:11:07 AM
Hi, How do we schedule a job?Is there any alternative other than creating a windows service? Are there any job schedulers in .net? Any freeware? Regs Vijaya...more >>

Serious regression: Win2K3 SP1 kills Timers
Posted by Oran at 6/28/2005 1:57:58 PM
Windows Server 2003 Service Pack 1 causes the System.Threading.Timer to not fire, sometimes immediately and sometimes after a while. Once a timer dies, it will never fire again. Jamus Sprinson posted this first with a simple repro app at http://groups-beta.google.com/group/microsoft.public.do...more >>

ROTOR source at University of Pisa offline?
Posted by Van Chocstraw at 6/25/2005 1:42:45 PM
I've been having problems getting to the ROTOR source at the University of Pisa for about a week now. Access is sporadic at best. Luckily I've been able to find what I need in Google's cache. Are they having problems? Are they taking it offline permanently? Or maybe they're blocking acc...more >>

CLR Deadlock?
Posted by Goran Sliskovic at 6/23/2005 12:00:00 AM
Hi, I am diagnosing a strange problem in .NET service (written in C#, framework 1.1 with sp1 installed - 1.1.4322.2032). Service is multhithreaded (heavily) and takes huge load (in CPU time, memory consumption and IO load). Service uses remoting to expose some interfaces and makes a lot of calls...more >>

CLR error on program startup
Posted by Joel Gordon at 6/22/2005 9:38:08 PM
Hi, I have developed a .Net application in C#, use Visual Studio 2003 (.Net framework 1.1). I am testing that it installs and runs OK on Windows XP (which is what it was developed under) running under Virtual PC. It runs fine on developer machines and appears to install fine under V...more >>



Stopping a thread executing a blocking call
Posted by Netveloper at 6/20/2005 11:15:47 AM
Hi! In a previous post I discussed the most suitable approach for multi-threading in a provided scenario and was provided very usefull feedback (thanks Stefan Simek, Jon Skeet and John Conwell). I am using a WaitHandler.WaitAll to wait for all of my threads to finish executing, but I wo...more >>

Marshalling LPSTR
Posted by Henning Krause [MVP - Exhange] at 6/20/2005 12:00:00 AM
Hello, I have a COM interface which has the following method: HRESULT Item( [in] DWORD dwIndex, [in] DWORD dwWhichName, [in] DWORD cchLength, [out,size_is(cchLength)] LPSTR pszName ); When I create a Wrapper-Dll with midl.exe and tlbimp.exe, this method is converted to: publ...more >>

CallContext threading problems.
Posted by Robert Rolls at 6/18/2005 12:00:00 AM
Simple question :- On a web server I sometimes see the error Item has already been added. Key in dictionary: "MethodName" Key being added: "MethodName" I'm using CallContext to store information. Is there a possibility that a two (or more) logical threads are sharing the same physical threa...more >>

general runtime host question
Posted by Stelrad Doulton at 6/17/2005 12:00:00 AM
What I want to know is; do all shell executed .NET app run in the same process? For that matter do all runtime-hosts run all of their app-domains in the same process? In the case of a shell executed application here's my understanding: Double clicking a .NET executable file invokes a runtime h...more >>

String.Trim method throws ExecutionEngineException
Posted by Eugene at 6/16/2005 1:07:03 PM
This problem occurs after system has been fully initialized and main form is displayed. Calling 'Trim' method during initialization causes no problem. I tried to avoid using this method but some framework classes use it as well. For example 'DataView.Sort' property uses it according to call s...more >>

Threading scenario - best approach ?
Posted by Netveloper at 6/16/2005 10:30:29 AM
Hi, In one of my classes I have a method, lets call it Fetch, which will collect data from various sources and return the combined result. Each of the sources can take between 5-15 seconds to collect so I would like to incrcease the performance by introducing multi-threading support for t...more >>

Bizarre: string.split() method
Posted by JV at 6/14/2005 3:33:30 PM
This is too weird. You're going to love this one. I just ran across the most bizarre DotNet "feature" with the String.Split() method. You are supposed to pass it an array of characters to tell it what separators to split the string on. if it finds any of those characters, it treats that...more >>

Service OnStart: return or not?
Posted by Lucvdv at 6/14/2005 11:19:48 AM
Something I can't quite get out of the docs, is what the 'normal' way is to implement a service's main body. My service collects data from network-attached devices at regular intervals, so it's basically an endless loop with a Thread.Sleep() for timing. Do you start a worker thread in OnS...more >>

Managed Memory Consumption - Service vs. Command Line EXE
Posted by Robert Reineri at 6/14/2005 9:11:10 AM
Hello All, I have written an application to process a file full of XML. For each "main element" in the xml file, the application parses it and writes the resulting object to an Oracle database. Here is the problem. In an XML file with 20000 objects, running as a service, the silly thing ...more >>

Handling "out of disk space" with System.IO.StreamWriter
Posted by Marcus Ogden at 6/14/2005 12:04:01 AM
When writing a file using StreamWriter, I'm having difficulty handling the "out of disk space" IOException. When catching this exception: - if I call Close() on the StreamWriter, it fails with the same IOException ("There is not enough space on the disk.") - if I call File.Delete(), it fails...more >>

result of (int)NaN ?
Posted by Tom at 6/13/2005 6:51:18 PM
I have the following instruction in C++.NET : x = log10(n); int y = (int)(x * h); where x, h, n are of type double, and x receives the value NaN (because the value of number is rather small). This results in y having value of the largest negative 32-bit integer. What does the sta...more >>

Strange requirement of IConvertible from XML serializer
Posted by Vagif Abilov at 6/11/2005 12:00:00 AM
Hello, I am often using XML serialization to deserialize type values from XML files. Recently I came across the exception thrown by Framework when I try to cast serialized class from object to a type. The following happens: 1. I read type using XmlSerializer into a generic "object" instanc...more >>

CompareTo return values are not consistent.
Posted by howard39 NO[at]SPAM nospam.nospam at 6/10/2005 1:20:01 PM
It seems that x.CompareTo(y) returns -1, 0, or 1 when x and y are int, long, uint, float, double, string, or DateTime types, depending on whether x is less than, equal to, or greater than y. But when x and y are sbyte, short, byte, or ushort types, the return value is y-x expressed as a signed...more >>

Compiling a .Net exe into a native win32 exe?
Posted by Kurt at 6/10/2005 12:57:07 PM
It seems sometime ago I heard you could compile a .net exe or assembly into a native win32 exe or dll, is this possible?...more >>

tail method calls
Posted by George at 6/10/2005 2:34:04 AM
Hi, does anyone know why the CLR bytecode verifier require that a tail. call instruction shall be immediately followed by a "ret" instruction? The current frame is discarded anyway when performing the tail call... Thank you. George...more >>

RealTime priority thread and GC
Posted by Marius Gheorghe at 6/9/2005 12:00:00 AM
I'm interested to know if having a few threads with the RealTime priority can somehow "disable" the GC. I know these are not officilay supported. Thanks....more >>

Net.Sockets.TcpClient - only first instace receives data
Posted by Lucvdv at 6/8/2005 12:00:00 AM
I've got a class that uses a Net.Sockets.TcpClient in VB.Net 2003, approx. like below (I snipped all code that isn't related to the problem). For some reason, only the first instance of this class works. Other instances that are created later can connect and send data, but they never receive ...more >>

dynamically loading assemblies
Posted by jas singh via .NET 247 at 6/7/2005 10:51:54 AM
i want to dynamically load .dll files and then get value of a satic property. i am doing this but getting an error: Assembly asm = Assembly.LoadFrom(dllPath); Type type = asm.GetType(); PropertyInfo propertyInfo = type.GetProperty("info"); I...more >>

"self-installing" service
Posted by Lucvdv at 6/6/2005 12:00:00 AM
I used to create services in a 'self-installing' way: a single executable that serves both as the service executable and as configuration/install program. Depending on a command line option they start either the service itself ("-service" present) or a configuration/install GUI (switch not pre...more >>

casting vs. the convert class
Posted by comp_sci_kid at 6/2/2005 7:31:31 PM
hi everyone which is more efficient: casting or using the convert class? please give reasons. tia ...more >>


DevelopmentNow Blog