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 > august 2004

Filter by week: 1 2 3 4 5

Assembly.Load() with alternate subdirectory for other assemblies which have dependencies
Posted by jcwiese NO[at]SPAM yahoo.com at 8/31/2004 10:00:55 AM
I have a question about dependent assemblies of asseblies that are loaded with Assembly.Load(). I have a directory structure with the following format: C:\temp\ -> myApp.exe -> OurCompany.Common.dll (version 1.5.0.0 with common routines, strongly signed) C:\temp\ExternalLibrary ...more >>


CLR Hosting - exception handling?
Posted by Vincent Parrett (Atozed Software) at 8/30/2004 8:41:18 AM
Hi I'm hosting the CLR in my win32 unmanaged application, it's all working really well however I have one issue left to resolve. When a managed exception is raised, it is propagated to the win32 host as an ole exception. Is there a way to get access to the managed exception object (I want to g...more >>

Managed EXE DLL Injection
Posted by Nadav at 8/28/2004 5:11:01 PM
Hi, I am writing some kind of an encryptor for.NET assemblies, This require me: A. To encrypt the IL code ( done successfully ) B. To enable transparent means of decrypting the IL code on run-time in a way that the encrypted DLL will stay independent. Concerning the latter issue, to achiev...more >>

How to use different color to display the item text in a ListView class with View property set to "details"?
Posted by ZhangZQ at 8/27/2004 5:59:27 PM
How to use different color to display the item text in a ListView class with View property set to "details"? I want to use different color for different row in the ListView. Thank you very much! Regards, ZhangZQ ...more >>

SpinWait....
Posted by Ollie at 8/27/2004 2:20:57 PM
What is an iteration with respect to Thread.SpinWait...... Cheers Ollie ...more >>

Unload assembly
Posted by Xavi Sam at 8/27/2004 8:42:40 AM
Hi I know how to load a assembly form specified directory, using Assembly.LoadFrom but How can I unload it? Is there something similar to FreeLibrary? Thanks in advance Javier ...more >>

How can I get IEEMemoryManager ?
Posted by Flier Lu at 8/26/2004 10:45:23 PM
There is a IEEMemoryManager interface in .NET FX 2.0 SDK's mscoree.idl, but why I cannot query it with ICLRControl::GetCLRManager? mscorwks.dll has a debug symbol GetEEMemoryManager, but not export it at all. I found this interface is implemented in CExecuteEngine but not in CorHost2 lik...more >>

Using the CLR profiler Api
Posted by sunil NO[at]SPAM volcanomail.com at 8/26/2004 4:10:32 AM
Dear All, I would like to use the CLR profiler api to code my own profiler and log it...how to do I start...do I have to write a COM dll that needs to be registered on the client machine that will recieve the callbacks... Is there some tutorial from where to start with? Please help... TA...more >>



Non-internet application wants to connect over internet
Posted by Tom Dacon at 8/25/2004 6:17:31 PM
I have a little desktop application (it happens to be a Windows Forms analog clock) that's written in VB.Net (2003). I placed a shortcut in my Startup program group to start it up when I log on. I have put no code in the application whatsoever to do internet communications, and yet when it starts...more >>

Bug in System.ComponentModel.PropertyDescriptorCollection.RemoveAt
Posted by mns at 8/25/2004 7:11:04 AM
The following program reproduces a bug in System.ComponentModel.PropertyDescriptorCollection.RemoveAt: Removing any but the last item of the collection generates a System.ArgumentException. --- Start code to reproduce bug --- <pre> namespace PropertyDescriptorCollectionBug { class HasAPr...more >>

class definiton if different dll's
Posted by darek NO[at]SPAM m-core.pl at 8/25/2004 1:53:11 AM
Hello. I'm wondering is it possible to have excatly the same class definied in different assebmlies and still be able to load all of them? Let's say that I have assebly that contains definiton of a class and the other one which also defines excatly the same class. During program exe...more >>

IL .data equivalent in C#
Posted by Ben Fidge at 8/24/2004 4:16:51 PM
What is the equivalent of the Intermediate Langauge instruction .data in C#? ...more >>

Default Shared policy
Posted by ESCOFFIER_Clément at 8/24/2004 2:00:42 PM
Hi, I have a question about the default share policy of the .Net framework. In the SSCLI, I see that just mscorlib is shared. Is that on the .Net framework ? An other question, each appdomain must load mscorlib to use base type if this assembly is shared, this behavior is not very heavy ?...more >>

Debugger fails under unit test runner
Posted by oleg stepanov at 8/24/2004 1:35:55 AM
Hi, I have a custom CLR debugger which uses standard CLR Debug API. Most of the time is works perfectly, but when it's run under unit test runner a DllNotFoundException is thrown. The problem seems to arise in CordbRCEventThread::FlushQueuedEvents when instance of IJWNOADThunk is created (see f...more >>

How to associate a GACed assembly with run-time version?
Posted by Sergey M at 8/23/2004 11:15:49 AM
Hi all, I have an application that collects GACed assemblies published by Microsoft only and their types using Fusion APIs. The application's written using VS.NET 2003. I'd like for the application to only target run-time v1.1 GACed assemblies. I've managed to isolate Microsoft's assemblies...more >>

Errr, Strong Named questions and Bug Report questions
Posted by cwertman NO[at]SPAM webchamps.com at 8/22/2004 6:09:26 PM
I have 2 questions, The first is, should I take a "StrongNamed" assembely and edit it with a hex editor to change something in one of its resource files I need changed, it barks about the Signature not matching. No Suprise there, BUT I have a different process whereby I can modify a Sto...more >>

Decimal: fixed-point or floating-point
Posted by Jon Skeet [C# MVP] at 8/21/2004 7:11:19 AM
It's been pointed out to me that, contrary to my long-held beliefs, the documentation for System.Decimal claims that it's a fixed-point data type. I reckon this is entirely incorrect - it's a floating-point data type in base 10. After all, here's another section from the docs: <quote> T...more >>

Question on GC and delegates
Posted by Satish Gidugu at 8/21/2004 12:13:01 AM
I posted this problem originally on the xml group. I have an app that processes XmlDocument and uses XmlElement.GetElementsByTagName quite liberally for various operations. It appears that the XmlNodeList (actually a subtree) returned by this method internally hooks itself to the document's ...more >>

Desperate help
Posted by cwertman NO[at]SPAM webchamps.com at 8/18/2004 6:03:01 PM
Here is the situation. I have a dll (.Net 1.1 C# to be exact) It has a path harcoded into it inside an include that is used as a resource. I hav lost the source to the app, it hasnt needed changed in some time EXCEPT a server path (refrenced inside that resource a js file to be exact) is...more >>

Calling base implementation from base class?
Posted by Joel at 8/18/2004 4:27:04 PM
Is there a way to call a base class implementation of a protected method when Here's the scenario: class MyApp { public static Main() { D obj=new D(); obj.Method1(); } } class B { protected void Method1() { } protected void Method2...more >>

Memory Leak Investigation
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 8/18/2004 4:20:13 PM
Okay guys, I've read 100 different threads on this subject, let's see if anyone has some good ideas for situation I'm in. Data: 1. My application fails with either an SEHException (during an unmanaged allocation) or an OutOfMemoryException (during a managed alloc) after 10-20 hours. 2. Mon...more >>

Socket.BeginReceive without callback?
Posted by Lucvdv at 8/17/2004 11:04:10 AM
Something isn't clear (to me) in the documentation. In the "Remarks" section for the Socket.BeginReceive method, it says: You can create a callback method that implements the AsyncCallback delegate and pass its name to the BeginReceive method. Does this "can" imply that the use of a ...more >>

Problems with LoadFrom and CreateInstance when using an URL
Posted by Hugo Venancio at 8/15/2004 6:01:01 PM
Hi, When I use LoadFrom to load a local assembly, ex: LoadFrom(@"c:\<path>\MyApp.dll"), I can then create an instance of an object given its type using CreateInstance("MyApp.Form1") without any problem. However, if I try the same but with an URL, ex: LoadFrom("http://localhost/SmartSampl...more >>

Re: Determine if assembly is loaded from GAC
Posted by Shell at 8/12/2004 9:49:35 PM
Ok... problems 1 and 2 solved. Now, is there anyway to specify that my app should use *only* the dll in the GAC? That is, if it isn't there in the GAC, I do not want it to try and discover it elsewhere (such as in the executing folder, etc.) Essentially, I want to ensure that the deployed app ...more >>

pinvoke and the Cdecl calling convention
Posted by Mike at 8/12/2004 6:05:25 PM
Good day, Perhaps this should be on the Interop newsgroup. Sorry if it should. I'm trying to PInvoke a function in a native DLL via its ordinal number. The native C++ function, ordinal number 1, has the declaration: int __cdecl CalcAverage(int,int,int); My C# declaration for that funct...more >>

"Path 'POST' is forbidden"
Posted by Ollie at 8/12/2004 5:03:35 PM
I have wrriten a reverse proxy for a client of mine, this reverse proxy takes the url takes it attempt to access a *.XXXX and returns the the contents of an aspx web page from another internal server, the user then clicks on a button on the page that then posts data to the reverse proxy and it r...more >>

Internal constructor "visible" outside of assembly. Compiler bug?
Posted by Martin Oddman at 8/12/2004 1:41:42 PM
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier (Foo.DataManager), one business tier (Foo.Kernel) and one web presentation tier (Foo.WebFiles). The data tier shall only be accessible thru the business ti...more >>

IL reading & writing - any available tool?
Posted by acyment NO[at]SPAM yahoo.com at 8/12/2004 6:33:37 AM
Hi everybody. I'm writing some IL instrumenting code and I haven't yet found an IL instrumenting application that...well...actually works. I've been trying RAIL (http://rail.dei.uc.pt/) and PERWAPI (http://www.citi.qut.edu.au/research/plas/projects/cp_files/pefile.jsp), but neither of them works...more >>

Re: Determine if assembly is loaded from GAC
Posted by Shell at 8/11/2004 4:52:28 AM
Mattias, > > Check the Assembly.GlobalAssemblyCache property. > How can I get a reference to an assembly loaded in my application? When I try GetType().Assembly.GetReferencedAssemblies(), I get an array of AssemblyName objects (which obviously doesn't have a GlobalAssemblyCache property...more >>

Determine if assembly is loaded from GAC
Posted by Shell at 8/11/2004 3:02:58 AM
Hi all, I have an app that has a reference to a strong named assembly. I expect this assembly to be available in the GAC on my target machine. 1) How can I prevent the dll from being copied into my bin folder when compiling? I know that the app will always use the GAC assembly, but still I ...more >>

enumerations as parameters, VB, and the value 0
Posted by cg22165 NO[at]SPAM yahoo.com at 8/10/2004 3:18:35 PM
I'm having some trouble with the value 0 and how VB is resolving its type when it is used as a parameter (to a constructor in this case). The same problem does not reproduce in C#; the correct constructor is always called. Sorry for the length, but the best description is simplified code: ...more >>

PublicKeyToken
Posted by ESCOFFIER_Clément at 8/10/2004 3:15:46 PM
Hello, I am looking for the calcul method of the PublicKeyToken of an assembly. Is it a hash method ? How the runtime use this information ? Thank you...more >>

Add custom property at runtime to an interface
Posted by Henrik de Jong at 8/10/2004 10:53:54 AM
Dear, Is it possible to add an property to an interface. The getter and setter should use the default indexed method Value[AFieldName]. By example adding a property Address wich uses as getter Value['Address'] and as setter Value['Address'] = .... (value). grtz, Henrik ...more >>

fatal error CS0007: Unexpected common language runtime initialization error -- 'The specified module could not be found. '
Posted by bill_headley NO[at]SPAM yahoo.com at 8/9/2004 2:36:55 PM
HELP ME PLEASE!! I have been working with .NET for a while now and never run into this one. I have an ASP.NET application with C# code-behinds and get the error message that is below when I deploy (either by using an MSI or by copying the necessary files and setting up a virtual directory in ...more >>

ReflectionOnly and custom attributes
Posted by SeanH at 8/9/2004 3:21:01 AM
Whidbey Version: Visual Studio 2005 Beta I want to Assembly.ReflectionOnlyLoad() an assembly that has classes decorated with custom attributes from another assembly. Since Assembly.ReflectionOnlyLoad() does not load depended assemblies, Type.ReflectionOnlyGetType() fails. Loading the depend...more >>

How can I trace the loc/reason of VB.NETApp crashing w/o any excep
Posted by A-Programmer at 8/9/2004 12:15:02 AM
Question: I have a problem with tracing the reason of VB.NET Application crash without any exception. That is, it doesn't throw any handled/unhandled exception despite the fact that all the sub/functions have try-catch for system.exception and i have set the machine.config for jitdebugging to...more >>

Using same Config file for multiple projects??
Posted by Sunmax at 8/5/2004 3:47:09 PM
Can we use the same App.config file for multiple projects each having a different .exe name? Thanks -Sunmax ...more >>

Perfmon | .NET CLR Counters | # bytes in all Heaps always reports 0
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 8/5/2004 10:46:18 AM
I'm debugging a C#.NET / MC++.NET / UC++ application which is having memory problems after 10-20 hours of runtime. I've already read a few dozen threads on similar issues, so I'm not gonna go into tons of detail. Every perfmon log I've collected so far display # of byes in all heaps as 0 alwa...more >>

WOW64
Posted by Stefano at 8/5/2004 6:42:54 AM
I'm using a 64bit machine for testing its performances and I wonder if is possible to use .net objects (1.0 or 1.1) under WOW64. THX Stefano...more >>

IMetaDataEmit->DefineCustomAttribute returning E_INVALIDARG - bug?
Posted by Brian Tyler at 8/4/2004 4:51:46 PM
I am doing some work on a very large assembly (lots and lots and lots of methods in here). I have created a new method and it gets assigned a token of 0x06000822. I then go to add a custom attribute to it, but DefineCustomAttribute returns E_INVALIDARG (this is v1.1). Using the disassembly vie...more >>

Reflection and GetField
Posted by Eric at 8/3/2004 12:22:24 PM
Hi, I'm trying to find a field in a object. I use this function: pObj.GetType().GetField(pstrFieldname) But it seems that he finds only fields which are initiated. Ex.: Public Class xy Dim zz as YY End Class Public Class YY Dim str as String End Class If...more >>

Updating a dynamically generated type
Posted by Eugene at 8/1/2004 6:49:22 PM
Hi, Is there a way to update a dynamically created type without having to rebuild it from scratch? I know that once you use the CreateType() method, you cannot define more methods on a TypeBuilder instance but it is possible to add more types to a dynamic module. So say I have a dynamic ...more >>

RE: Forcing a Large Object Heap allocation
Posted by Bruno Jouhier [MVP] at 8/1/2004 1:12:10 PM
I don't think that you have this level of control. I don't see any reason why this would be useful either. The memory manager must be properly encapsulated and should not expose this level of detail. Why do you need this? Bruno. De: "Frank" <google@xemaps.com> Objet: Forcing a Large Object...more >>


DevelopmentNow Blog