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
May 2008
June 2008


all groups > dotnet clr > may 2004

Filter by week: 1 2 3 4 5

Custom Attributes and Code Generation
Posted by S-t-a-r-C-i-t-e at 5/28/2004 11:56:06 PM
When you use the [WebMethod] attribute code is generated for you. I need to do the same for our corporate framework. Can someone point me to an article/discussion on how to do? I've seen that XC# does it. Thanks in advance ...more >>

Deadlock in C#, CreateProcess, MFC
Posted by Werner B. Strydom at 5/27/2004 11:32:49 PM
Hi, I'm having some trouble launching an MFC application from a .NET application. In a Winforms application [written in C#], I use the Process class to start an MFC application. The MFC application creates, automates and destroys several COM objects (including Microsoft Word) in a background ...more >>

Assembly Reference
Posted by GurriBurri at 5/27/2004 2:39:33 AM
Hi there I have a peculiar prob. I am trying to build a file with testcases for NUnit in which I want to reference the Assembly with the code to be tested. The source compiles but when I try to execute the file in the NUnit console it doesn't find the Assembly. But if I copy the .dll to ...more >>

Get assembly location from IMetaDataImport
Posted by Yang at 5/26/2004 12:28:52 PM
Hi, does anybody know how to get the assembly file location from the SDK interface IMetaDataImport? I can get the module name, the assembly name, but didn't find a way to get the location. Thanks. Yang ...more >>

Timer accuracy
Posted by LJJ at 5/25/2004 5:41:03 PM
Hi I have noticed that the time resolution of System.Timers.Timer and System.Threading.Thread.Sleep() varies significantly between systems of seemingly similar class. For example on my HP Centrino 1.6GHz laptop, I see a resolution of 10ms for the event from System.Timers.Timer and a delay in Syst...more >>

install error occuring
Posted by ahrensd at 5/24/2004 9:31:03 PM
while installing an VisualPerl-vs2003-1.8.1.2827.msi I get the following error "devenv.exe - mscoree.dll load error (Error code = %X) Two different copies of MSCOREE.DLL have been loaded First copy <Unknown Second Copy C:\windows\microsoft.net\framework\v1.1.4322\mscorwks.dl This is typi...more >>

Assembly Version Build Time
Posted by Niall at 5/24/2004 1:46:38 PM
We're using the default .Net AssemblyVersion attribute value of 1.0.* For some reason, when we use the version number to calculate the time the assembly was built, it's coming out an hour ahead of the actual time. The algorithm that is used to generate the version number is supposedly: "When...more >>

need the thread id from an API
Posted by cg22165 NO[at]SPAM yahoo.com at 5/24/2004 11:05:57 AM
I'm working on an API assembly that will be used by an application or another API. I don't have any control over when or how threads are created. My API is equipped with tracing for debugging purposes. Since my assembly can be used in by a multithreaded application, I want to put some form of...more >>



Throwing exception from a child domain.
Posted by Jonathon Bell at 5/24/2004 9:01:07 AM
Howdy I'm having difficulty throwing any kind of exception from within secondary domain, and then catching it back in the primary domain (I'm writing a managed C++ assembly, Windows XP, Visual Studio .NE 2003) The function foo() runs in the primary domain, creates a child domain instantiate...more >>

Load Resources from Dynamicly loaded assemblies
Posted by Patrik Löwendahl at 5/21/2004 4:52:05 PM
Hi, I've got an application that uses Assembly.LoadFrom and Activator.CreateInstance to dynamicly load assemblies and create objects. Tese assemblies containes classes which exposes a property, ItemImage. ItemImage returns an Image object. The image (icon) it should represent is embedded i...more >>

Sequential class layout and packing
Posted by Mike at 5/21/2004 7:11:02 AM
Hell I've been playing with some IL code, and have encountered two interesting issues The first is probably a usage misunderstanding on my part. The ".pack <n>" directive seems to have no effect on my object layout The second is that the CLR appears to ignore me if I mark the class hosting the...more >>

StreamWriter Adds FFFE at the start of the file with Unicode Encoding!!
Posted by Majed at 5/20/2004 6:00:12 PM
Hi , all I'm trying to write unicode to a file for another app (not developed with vs2003) to read it. I used StreamWriter with unicode encoding.but I was surprised that the streamwriter adds FFFE to the start of the file,which stopes the other app from reading it!! any idea how to stope it fro...more >>

Using AddressOf... as a parameter
Posted by Anthony Coelho at 5/20/2004 9:50:04 AM
Hello Guru's! I am trying to pass a function pointer as a parameter to a method and can't seem to get it working. Basically I want to do the exact same thing that the System.Threading.Thread constructor does in VB.NET within my own class. In the Thread constructor, you can specify the function...more >>

Loading of .NET executable
Posted by bsaikat NO[at]SPAM yahoo.com at 5/20/2004 8:42:47 AM
Can someone refer to me a good online resourec about how a .NET exe gets loaded into memory and executed once I dbl-click the executable icon from my windows explorer?...more >>

shared Assemblies
Posted by Baren at 5/20/2004 2:36:02 AM
I Created 2 versions of an assemblies in GAC..Now I have 2 projects one of which will refer to Version 1 of the Assembly and Other to Version 2 of the Project. Now My question is where should i give the assembly version numbers in my project Remember..i created 2 assemblies first and then the 2 pro...more >>

AppActivate
Posted by James Johnson at 5/17/2004 11:50:58 AM
In Visual Basic you use AppActivate when you want to set the focus on another application. Does anyone know what the equivalent function call is in C#? Thanks, James J. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for ...more >>

Adding objects to Context.Items
Posted by John Linn at 5/17/2004 9:11:03 AM
If I add an object to HttpContext.Current.Items, does that mean it will last the duration of the page request? If not, what controls when that object will be cleaned up -J...more >>

Is is possible to mix IL code and C#/VB.NET code????
Posted by Bob Rock at 5/16/2004 7:57:17 PM
Hello, I was wondering is it is possible to place in a source code file both IL code and a higher level language (C# or VB.NET) code??? In other words in it possible to have something line inline assembly (assembly code placed directly into C/C++ source code files) by tagging the IL code area...more >>

Retrieving method call parameter values generical, possible ??
Posted by Claes Rådström at 5/14/2004 9:37:22 AM
Hi ! I vould like to be able to retrieve the parametervalues pass to a method in a generic way. Thru reflection or StackFrame. Is this possible ? if so how Any ideas ? /Claes ...more >>

How are .module extern references in an assembly manifest resolved (aka how are libraries used in PInvoke resolved)
Posted by Justin Rogers at 5/13/2004 9:25:54 PM
I'm running into a case, where I replace the library within my directory (say I put a custom gdiplus thunk library), but my library isn't getting loaded into the process. Instead the actual gdiplus library is being loaded. Under normal circumstances writing thunk libraries for debugging has bee...more >>

Type.GetType call cost
Posted by Jiho Han at 5/13/2004 1:08:20 PM
Basically I am wondering how costly the call "Type.GetType()" is. More specifically, I am wondering whether the subsequent identical calls will incur the same amount of resource or not. For example, let's say I have a MyClass type defined in MyAssembly.dll and I call Type.GetType() method like...more >>

Initially-owned mutexes and multiple XP logins?
Posted by doomer at 5/13/2004 11:06:04 AM
Hello I have an application where I need to have only a single instance running on a given PC. The way I had been making sure that there was only one was to try to create an initially-owned mutex, something like this.. 1: bool created = true 2: mutex = new Mutex(true, "AgilentMsmtSrvr", out cr...more >>

ArrayList Sort Terminating
Posted by BobTheHacker at 5/13/2004 6:51:05 AM
Project C# utilizing the Framework In my project I have an array list of integers that sorts just fine. Then I have an array list that contains a class that I have built. When I call the "sort" method of the array list and accept the defualt sort arraylist.sort() I get the following error messag...more >>

Selecting the correct function using Type.GetMethod
Posted by mpaci NO[at]SPAM passepartout.sm at 5/13/2004 6:22:46 AM
Hi, I've the following class. public class c{ public f1(int one); public f1(ref int one); } How can I get the MethodInfo for the function with the Ref parameter using Type.GetMethod() and using the DefaultBinder. I tried in different ways but I cannot figure out how to do it. T...more >>

Methods Reflection
Posted by mpaci NO[at]SPAM passepartout.sm at 5/13/2004 3:58:10 AM
Hi, I need to inspect methods through reflection to discover if for a method's parameter ref modifier was used. I noticed that in ParameterInfo class a property isOut is available but I don't know how to discover if a ref parameter has been defined. Thank you in advance Marco...more >>

sensitivity of the charcter
Posted by Haron Ali via .NET 247 at 5/12/2004 9:57:32 PM
Hi I want to know how can i made comparisn between sensitivity of the charcter i.e I want My Code accept "HASSAN" as "hassan" thank u very much -------------------------------- From: Haron Ali ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>mvc4C...more >>

question regarding 64-bit processing
Posted by u4ea_ NO[at]SPAM hotmail.com at 5/12/2004 6:38:55 PM
Here's something I was pondering earlier: There's a 64-bit version of Windows XP that is supposed to work with AMD 64-bit processors. Now, the huge task of migrating unmanaged code to 64-bit would be monumental (I'm guessing). But given that .NET code isn't natively compiled, rather it gets ji...more >>

common language runtime not loaded
Posted by Ron at 5/11/2004 5:16:04 PM
Hi I'm getting a Error: common language runtime not loaded in my Options/Projects/VC++ Build tab. I'm currently running Framework 1.0 Anybody come across this?...more >>

Statics and threading
Posted by Andy Newland UK at 5/11/2004 3:11:02 AM
Hi, I am writing a fairly simple desktop app which will not be subject to great loads. Therefore this question is more for academic purposes! I have implemented a class that declares only static members and functions. I use this class to control my connections. There are just 2 methods; Open a...more >>

Profiler API questions
Posted by Anthony Novak at 5/10/2004 8:46:05 AM
Hi Folks I have 2 questions regarding the clr profiling api. I am using the gcp_profiler sample as the basis for the questions. Using ver 1.1 of runtime, vc7 Background I am working on a project with a public web service interface. This interface is called by a client program. We have tracked ...more >>

fatal error JS2008 when compiling a jscript.net assembly
Posted by Jon Davidson at 5/9/2004 9:21:03 PM
I get the following error when attempting to compile a JScript.net assembly. The compilation error does not specify any syntax errors in the code The error fatal error JS2008: Error saving compiled state: The process cannot access the file because it is being used by another proces This is us...more >>

Severe limitation for IE-hosted .NET controls (classid is truncated to 128 chars)
Posted by M. Shawn Dillon at 5/7/2004 6:17:51 PM
I am using IE 6 with all patches applied on Windows Server 2003 and Windows XP SP1. Recently, I installed the tech preview of Visual Studio .NET 2005 and attempted to view the IE Sourcing QuickStart sample to see if it had the same problems. It does (IE Binding log information is below), but ...more >>

Profiling NGEN'ed modules
Posted by Simon Sheffield at 5/7/2004 3:01:09 PM
Hi. My profiler needs to profile some of the Framework libraries, and so the contents of the native image cache need to be changed. I would really like to be able to just do a "ngen.exe /prof mscorlib.dll" and then have this version or mscorlib picked up when profiling (and when not profiling, ...more >>

CLRProfiler Managed Windows Services
Posted by Ice at 5/6/2004 4:27:32 PM
Folks - Has anyone been able to start a managed windows service through CLRProfiler and actually get it to profile? I've gone through the sparse posts that exist out there and my situation is the same. I get the "Waiting For Connection" box. I verified that the service is being started us...more >>

Usage of AppDomain.CreateInstanceFromAndUnwrap method
Posted by Vineeth Karinta at 5/5/2004 6:16:03 PM
i am trying to load a Windows Form Assembly at run time to a seprate AppDomain. I don't want that this Assembly to be loaded in the Caller Domain, so i used the metho CreateInstanceFromAndUnwrap instead of AppDomain.Load(.. // I am passing the Control's parent through the constructor argumen Obj...more >>

R6025 error during VisualStudio shutdown.
Posted by RameshK at 5/5/2004 3:33:38 PM
Hi All, Laucnhing a VC7.0 custom wizard using DTEClass of ENVDTE namespace. Subscribed to events like OnBeginShutDown,AfterClosing... During manual close of the wizard generated program getting R6025 error after exitting hte OnBeginShutDown event handler in my program. Any help is app...more >>

Sorting
Posted by James P at 5/5/2004 2:45:14 PM
Hi All, I have an xml file as listed below. This is a list of scripts. Some of the scripts depend on the output of other scripts. I want to sort this xml in such a way that the scripts are listed in the correct order of execution. I created an IComparer class and implememted the Compare method...more >>

diassembling a program into IL
Posted by Altex at 5/5/2004 12:47:42 PM
Hi If I compile a program I've got program.exe with ILDASM I've seen that it is possible to diassemble the program.exe to the IL format in this way, isn't it to easy for someone else modify my code? is there a way to prohibit the diassembling of my code? ...more >>

how to call an unmanaged __fastcall function from CLR in C/Winforms ?
Posted by andrea catto' at 5/5/2004 10:06:10 AM
I 'managed' to be able to call a regular unmagaged function from within a clr bases winforms, but.... I can not call functions that are compiled as __fastcall.... there has to be a way, otherwise how would be possible for the world to migrate or use old static libraries ??? ...more >>

Find parent object?
Posted by Rob Nicholson at 5/4/2004 11:40:55 PM
Consider an class object: Public Class DataLink Sub New() ' Is there anyway to get an pointer to the parent object here? End Sub End Class Which is used as a field in another object class: Public Class ParentLink Private m_DataLink As New DataLink End Class Crea...more >>

StrongNameIdentityPermission does not working with WinForm
Posted by Bnaya at 5/4/2004 9:05:31 PM
I'm invoking the same Dll from Console application and WinForm application Both signed with SrongName. the class that I'm invoking is protected with StrongNameIdentityPermission Demand and hear is what happened: the console application pass the demand but the WinForm failed ...more >>

how to call an unmanaged static library's member from winforms ?
Posted by andrea catto' at 5/4/2004 1:50:37 PM
how to call an unmanaged static library's member from winforms ? ...more >>

MSIL Optimizer?
Posted by cody at 5/4/2004 1:16:59 PM
is there any tool which can optimize msil? for example: if (a is MyType) { MyType mt = (MyType)a } could turn into: MyType mt = mt as MyType ; if (mt!=null) { } Maybe there are much more such situations. I know that the jitter *could* do such Optimisations, but does it? -- ...more >>

unmanaged old static library, how to call its functions from managed code in Win Forms, VC++ ?
Posted by andrea catto' at 5/4/2004 11:47:05 AM
Yes I did some research on google but nowhere I could find a working example. I have a header file and its .lib/static library. I'd like to design an UI application using Windows Forms which seems cool but.......... I can NOT call a regular unmanaged static library's method. it tells m...more >>

duplicate assemblies in GAC
Posted by jc at 5/4/2004 11:10:40 AM
In the GAC there are duplicate assemblies like System.Design, Native Images, 1.0.5000.0, b03f5f711d50a3a... How is it possible ? ...more >>

WebRequest without IE dependency
Posted by Thana N. at 5/4/2004 11:03:16 AM
Hi, I would like to know how to use WebRequest without IE dependency. I know that if I has my own proxy setting via WebProxy, it will use value from WebProxy. But how can I do if I want to set my program with no proxy when IE has its own proxy settings. Thanks in advance, Thana N. ...more >>

OLE controls!!!! HELP
Posted by Noel Garcia via .NET 247 at 5/4/2004 9:25:10 AM
I love OLE controls. I have an application I wrote in VB 6 using the OLE control, I need to upgrade it to .NET but there is no OLE controls in .NET. HHHHHEEEEELLLPPPP! Anybody Please!!! -------------------------------- From: Noel Garcia ----------------------- Posted by a user from .NET 2...more >>

Finding Implemented Interfaces with Reflection
Posted by Rick Strahl [MVP] at 5/4/2004 3:28:48 AM
Does anybody know how to retrieve only the implemented interfaces of a specific, class, not those that are implemented by inherited classes? Type.GetInterfaces() gets me everything, but I'm only interested in the immediately implemented interfaces. It looks like GetInterfaces() returns the...more >>

Instance members change after it's constructor returns
Posted by koverton at 5/3/2004 10:46:04 AM
Here's an example, this is the constructor for an object (plus a member it initializes): public class MyObj { //etc. private Hashtable idlist; public MyObj (string localityName) { // etc. idlist = new Hashtable(); } //etc } Under the debugger, as I step into this constructor and create a...more >>

ANN: 9Rays.Spices.Net [asm.browser, analyzer, obfuscator, decompiler, modeler]v3.4.2 released
Posted by Al Ponomarev at 5/3/2004 5:39:12 AM
New version of Spices.Net v3.4.2 has been released. A lot of improvements, corrections and bug fixes. 1.. Spices.Net Decompiler: Significantly improved speed of GUI output. 2.. Spices.Net Decompiler: Incorrect work with stack bug is fixed. 3.. Spices.Net Decompiler: new improvements,...more >>


DevelopmentNow Blog