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

problem in making ActiveX calls from C#
Posted by anushuks NO[at]SPAM yahoo.com at 12/31/2003 11:18:54 PM
Hi all, I have to make a call to an ActiveX component from C#. The ActiveX call expects a VARIANT *. I keep getting an exception (COMException) "type Mismatch" on making the call. The call I made was { Object Obj = new Object(); ActiveXCall(ref Obj); // Gives "Type mismatch" at run t...more >>

Real-time threads and GC
Posted by Steve Terepin at 12/30/2003 2:39:48 PM
I'm writing an app that does real time data acquisition, and needs to respond to DMA-complete events that get signalled every 10mS approximately. Currently I have some native C++ code that works very nicely, with a dedicated 'daemon' thread that waits on a Win32 Event and kicks off the next DMA ...more >>

Resuming from an user-filtered handler
Posted by jsilva.net NO[at]SPAM iol.pt at 12/29/2003 3:03:16 PM
Dear all: I´m a bit confused after reading about exception handling in the ECMA standard. In Partition I, section 12.4.2, Exception handling, it says: "A user-filtered handler that runs a user-specified set of CIL instructions to determine whether the exception should be ignored (i.e. ex...more >>

.NET and Win32 APIs
Posted by neo at 12/29/2003 11:42:41 AM
hi, I am a bit confused about .NET framework. Does the functions avaiable in ..NET call the underlying Win 32 APIs or the fuctions are implemented in the framework itself ? Also there are some different APIs available for win98 and win2000. So if ..NET calls the OS APIs then does it detect ...more >>

nprof 0.5 released
Posted by Matthew Mastracci at 12/26/2003 3:55:28 PM
The nprof 0.5 alpha release is now available. nprof is designed to be not only a fully-fledged profiler for .NET applications, but also a complete API that can be used to build other profiler front-ends, as well as extend the default GUI with new visualization tools. nprof is Open Source. ...more >>

Is there a disassembler that converts to *.CS file.
Posted by Umut Tezduyar at 12/26/2003 1:16:05 PM
I am using anakrino, but it is insufficient in some cases. I want another decompiler that converts *.dll file to *.cs files with attributes in the classes. Is there a program like this. ...more >>

Parser Error
Posted by Augustin Prasanna. J at 12/26/2003 3:35:24 AM
Hi, We have a c# dll that is being referenced by a web project (client) which is being referenced by another web project (portal). After building the solution, there are no compile errors and the respective dlls are found in the bin folder of the portal project. During runtime (when bro...more >>

Assembly.LoadFile(..) -- assembly loaded but not found later
Posted by howard dierking at 12/23/2003 2:27:31 PM
for a given path, I want to load all of the assemblies so that I can later walk the dependency graph. This function works fine... static void LoadAllAssembliesForPath(string path) { string[] files = Directory.GetFiles(path); foreach(string x in files) { if(x.IndexOf(".dll") > ...more >>



How to add a strongname key to a assembly created with ilasm.exe(Intermediate Language) or to an already made DLL?
Posted by port_branco NO[at]SPAM hotmail.com at 12/22/2003 10:47:00 PM
How can i accomplish this? I want to be able to put a DLL of mine in the GAC(It must have a STRONG name) but the following command is not working: ilasm "my_il_file.il" /DLL I already tried to: ilasm "my_il_file.il" /DLL /KEY="key_file.txt" but it still didn't work Could anyone enlighten ...more >>

Memory Leak
Posted by Bryan Hunt at 12/20/2003 1:01:55 PM
I hope that this the appropriate newsgroup for this posting. I have a problem with a C# program that accesses eventlogs on various servers (read only) at our site. The program is in a continuous loop, so eventually will use up all available memory before crashing. I have condensed the...more >>

How to shut down blocking thread
Posted by banderbe NO[at]SPAM yahoo.com at 12/16/2003 1:43:31 PM
I have a thread that sits in an infinite loop making a blocking socket listen call. When incoming connections arrive they're fed into the program, and the thread continues listening. The question is, what do I do if I want to kill my application? How can I interrupt the socket from blocking ...more >>

ProcessExit event & unhandled exception
Posted by Ales Pour at 12/16/2003 10:12:17 AM
Hello, in my app, I need to cleanup some native resources whenever the app exits, either gracefully or not. So I wrote ProcessExit event handler, console event handler to catch CTRL-C (why the ProcessExit is not called when user breaks running app woth CTRL-C?). Now, when an unhandled excep...more >>

CLS naming conventions
Posted by Edward Diener at 12/15/2003 7:45:49 PM
Does anyone know the correct naming conventions for CLS compliant code ? The doc points to a really obscure and difficult to digest document on the web about Unicode names, and I am looking for simpler rules that tell me what names are CLS compliant. Here are some simple questions: 1) Can a CL...more >>

CreateInstanceAndUnwrap returns a MarshalByRefObject
Posted by Gordon Henriksen at 12/12/2003 4:10:09 PM
Hi everyone, I've been struggling with this for a while to no avail. I have an internal application which uses remoting to launch AppDomains and load/unload user assemblies. I'm trying to integrate it with Visual Studio .NET as an add- in. I've hit a rather major obstacle with using remot...more >>

ExecutionEngineException hosting in IE
Posted by Bill Dines at 12/12/2003 8:33:55 AM
I'm having some problems running an application hosted within IE that do not appear to occur when running normally. I start the application from another managed app with the following code: System.Diagnostics.ProcessStartInfo i = new System.Diagnostics.ProcessStartInfo("IExplore.exe");...more >>

Problem with DateTime.ParseExact
Posted by Fred Strauss at 12/12/2003 8:30:32 AM
I am having an odd problem using the DateTime.ParseExact() method that I'm hoping someone can help me with. I have XML files that use 2 different date formats internally. I am trying to use the same call to ParseExact to parse either format. I am using C# to call the following form of ParseExa...more >>

GAC: Installing DLL which depends on EXE
Posted by Claus Brod at 12/12/2003 2:54:30 AM
Hi all, first of all, I'm a .NET newbie, and while I have done some basic research and browsing, chances are that my question is trivial and I should simply RTFM; I apologize. Also, if this is not the right newsgroup, let me know. We want to add a .NET wrapper on an existing C++ applicatio...more >>

Difference between Monitor and Mutex
Posted by Gianluca Varenni at 12/11/2003 8:32:26 PM
Hi all. What's the difference, from the OS point of view, between Monitors and Mutexes? I'm almost sure that the Mutex object is a wrapper to the native win32 mutex (if I create a named managed Mutex, I can see it with winobj) Is there a relationship between the win32 native "CriticalSect...more >>

OutOfMemoryException from String.PadRight(int, char)
Posted by Niall at 12/11/2003 1:32:51 PM
In very rare cases, we are getting an OutOfMemoryException coming out of String.PadRight(int, char). At the time, there is certainly plenty of memory free as far as I can see. The application is not using excessive memory (using around 80MB with around 300MB free and plenty of swap space). I h...more >>

SecurityException & Request failed: How to know more ??
Posted by fc308 NO[at]SPAM hotmail.com at 12/11/2003 2:14:52 AM
Maybe someone knows how to solve this one. My context is the following: a VB.NET WinForms app gives the following error message when launched in the Internet Zone. [...other dependent libraries loading...] Loaded 'C:\WINDOWS\assembly\GAC_Neutral\System.Xml\1.2.3400.0__b77a5c561934e089\Syste...more >>

TypeloadException with static method
Posted by cody at 12/10/2003 4:23:40 PM
my problem is as follows: abstract class A { abstract Foo(); static Doit() { A = new B(); } } class B : A { override Foo(){} } When I call B.DoIt(); a Typeloadexception occurs. I extremely simplified the problem here but you basically see what its going on. In my little exam...more >>

Hide base members in intelllisence list
Posted by szabeli at 12/10/2003 3:55:11 PM
Hello, is there a way to hide base class members so they are not list in intellisense dropdown? i.e. I only want to see properties and methods of my derived class. Through some Attribute probably.... Thanks...more >>

Async Socket: Rising Thread Count
Posted by Morgan Leppink at 12/10/2003 12:54:28 PM
Hi all - We have been developing a complex TCP socket communication app that is responsible for keeping numerous connections open to clients on routable IPs. The app receives request on a non-routable listener socket that marshals communications between the non-routable netowrk and the ...more >>

BUG: memory leak in mscordbi.dll
Posted by Hanno Lewandowski at 12/10/2003 1:29:49 AM
Only for pedants : I dicovered a memory leak in the interface ICorPublish (mscordbi.dll) ICorPublish::GetProcess(DWORD id, ICorPublishProcess** p) Every time this function is called, it lose 8 bytes of virtual memory...more >>

How to find which window the mouse is in
Posted by Ed White at 12/9/2003 6:30:10 PM
In Visual Basic .Net, I am trying to figure out how to get a reference to the open window that the mouse is in. Suppose I select (highlight) text on a web page shown on an Internet Explorer window, and then click on a toolbar item in that window which runs my VB program, and the VB progra...more >>

Difference between CCW and CLR hosting
Posted by atomo77 NO[at]SPAM libero.it at 12/8/2003 1:16:22 AM
Hi. What is the difference between these two approaches? My thought is that CCW automatically loads the runtime, with default settings, while with CLR hosting you have control over each step of the runtime loading (type of GC and so on). Am I right? Have a nice day GV...more >>

Win2k Hyperthreading .Net & Processes: ODD!
Posted by smith at 12/7/2003 8:57:37 AM
I was recently set to release an app that used very common single instance code and hit the oddest issue. After many hours of full build tests I believe that it is duplicatable. Environment: ..Net 1.1 (v1.1.4322) Windows 2000Pro HyperThreading machine Issue: Install 2kPro on the HT...more >>

Hosting the CLR
Posted by David Battams at 12/5/2003 9:26:39 AM
I posted this message on microsoft.public.dotnet.framework.windowsforms since the original thread related to an error that results when trying to show a form when I create it on a worker thread. (Error creating window handle.) The problem only occurs when I manually host the CLR and then use a w...more >>

Bug in System.Collections.Specialized.BitVector32
Posted by Paul Reeder at 12/4/2003 9:57:01 AM
I seem to have found a bug in the BitVector32 structure. Programatically, it is not possible to check the value of the highest bit (32nd) using BitVector32.get_Item(int). Setting the bit works as expected. Example code (C#): using System.Collections.Specialized; BitVector32 vector = new...more >>

Unable to use breakpoint in debugger
Posted by Marc at 12/4/2003 9:09:32 AM
When I run debug with a breakpoint set the breakpoint appears with a "?". When I place the mouse pointer over the breakpoint the following information is provided: "The breakpoint will not currently be hit. No symbols have been loaded for this document." Anyone know how to get the symbol...more >>

Config-files
Posted by Chris at 12/3/2003 5:49:19 PM
Hi, Binding policy can happen at several levels : - Application-policy resolution (e.g. myapp.exe.config) - Publisher-policy resolution (installed in the GAC) - Administrator-policy resolution (machine.config located at ...more >>

Possible memory leak in singleton object hosted in window service
Posted by Raghu at 12/3/2003 12:24:03 PM
We host bunch of singleton remoting objects in different app domains in a window service. The service runs with admin user identity. The client (window application) calls a method (say A) on the singleton remote object to supply an id. The method on remote object does some heavy processing based...more >>

Dispose and Finalize
Posted by Klaus Löffelmann at 12/2/2003 9:29:32 PM
Hello, If I have an object which is about to become finalized, and this object has instantiated several other objects during its lifetime, how can I be sure (or find out) that those objects haven't been killed by the GC, already? Take, for example, a class that uses a FileStream-object which...more >>

Is it possible to install GAC at other location ?
Posted by Chris at 12/2/2003 10:32:20 AM
Hi, Is it possible to have the GAC installed on a different drive than the system drive, so not installed on c:\winnt\assembly. This question because I work on a PC where I don't have any rights to write/install anything on the system drive. Thnx Chris ...more >>

Managed Heap
Posted by Klaus Löffelmann at 12/1/2003 9:53:36 PM
Hello, simple question: does an AppDomain have one Managed Heap, or has every Application in the AppDomain it's own? Does anybody know source on the net about that? Thanks, Klaus ...more >>

bugreport : memory leak in mscordbi.dll (ICorDebug interface)
Posted by hanno lewandowski at 12/1/2003 5:12:30 AM
Hi all, hopefully this posted mail will be read by a microsoft developer. I'm writing a monitor application (native Win32), which uses the ICorDebug interface just to access variable objects of a .NET application. It works fine, but after a while the monitor process get out of vir...more >>


DevelopmentNow Blog