microsoft.public.dotnet.framework.clr Archive - January 2003
Post a message to this list
Messages
Page: 12
Question about runtime hosts (3 replies)
microsoft.public.dotnet.framework.clr
Okay, I went to this site: http://msdn.microsoft.com/library/default.asp?url /library/en us/cpguide/htm l/cpconhostingcommonlanguageruntime.asp and started reading. I got slightly confused about a couple of things concerning runtime hosts. Perhaps I don't understanding, completely, the idea of the runtime and how it integrates with the operating system and such, but my initial understanding was th...
Compare type at runtime? (5 replies)
microsoft.public.dotnet.framework.clr
Folks, I have a problem that I can't seem to solve... I have two classes... Account and CreditAccount. CreditAccount extends Account. At runtime, I have two instances. One instance is an Account and the other is either Account or CreditAccount. An error condition would be when the second instance is neither of these types. I need to test whether the instance I have is in the Account taxonomy. I ha...
Fibers in .Net (via P/Invoke) (15 replies)
microsoft.public.dotnet.framework.clr
Has anyone ever implemented fibers in C# or any other language ? I know they're not implemented in the runtime, so I'm talking about using them via p/invoke. Is it even possible? TIA, john
When is managed code not sufficient? (6 replies)
microsoft.public.dotnet.framework.clr
Targeting managed code makes sense for a very large number classes of applications. However, I am wondering if anyone is maintaining a list of exceptions to this, where for a either unmanaged or older compilers are used to solve current and relatively common problems. Just to drive the point home as to what I'm getting ati, I'll provide some examples. Albeit an obscure one is, Netscape PlugIns. If...
Assembly.LoadFrom failing to load dependencies (2 replies)
microsoft.public.dotnet.framework.clr
I have an application which dynamically loads classes from a dll. I load this dll using Assembly.LoadFrom, specifying the full path and dll name. However, I am having a few problems with it dependencies. I have looked through the output from fuslogvw (I've got it set to log ALL binds), and I can see the dll being loaded in, which works. The next entry shows its dependency attempting to be loaded, ...
bug in ilasm ? (3 replies)
microsoft.public.dotnet.framework.clr
Hi, I noticed a strange behaviour of ilasm recently (version 1.0.3705.0) I have a module with 3 classes: an interface I, a standalone class A, and a class B implementing the interface. If the interface is the first in the file, ilasm compiles an invalid executable. But if I put the interface in the end of the file, the executable is valid. Below are the two versions ###############################...
Do appdomains limit internal access boundaries? (2 replies)
microsoft.public.dotnet.framework.clr
Hello, Suppose that I have 2 classes in an assembly, with some internal members. Can they access each other's internal members through a cross app domain boundary, as in a remoting scenario? thanks, Michael
.NET advantages over native C++ (13 replies)
microsoft.public.dotnet.framework.clr
I have been using C for 10 years. Now I am trying to learn .NET. I still cannot understand and see a single advantage of .NET and C# as one of its core programming language over C Windows programming using high performance libraries like ATL (ATL Server), STL, WTL and even MFC. At the same time disadvantages are clearly seen: IL code must be JIT compiled before executing that hits performance, man...
Custom Http Server using TcpClient (how to obtain WebRequest / WebResponse) (2 replies)
microsoft.public.dotnet.framework.clr
I am attempting to write my own HTTP server. All of the examples that I have seen so far are overly complicated (i.e., You have to manualy read and write headers, data, etc. from the network stream). There should be some way to generate WebRequest and WebResponse (or HttpWebRequest and HttpWebResponse) objects on the server side once a socket connection is accepted. Given the following server side...
setting values from configuration file(IConfigurationSectionHandler) (2 replies)
microsoft.public.dotnet.framework.clr
I am trying to use IConfigurationSectionHandler in order to set certain values from a configuration file in a .NET console application. Say my application name is MyApp, I name the configuration file MyApp.config. The configuration file contains the following section: configuration configSections section name "MyAppConfiguration" type "...MyAppConfiguration namespace..., ... / /configSections AppC...
Reading null string property through reflection (3 replies)
microsoft.public.dotnet.framework.clr
Hello out there. I couln't find a better spot to post my question, so here it is. I am writing generic handler that would grab Object from client program and it's description from a text file and display Object fields that are described in that file. Here's a simplified snippet of my method that uses reflection: // IControl is my generic control representation, here i just need // its DataField pr...
GetReferencedAssemblies only returns loaded assemblies? (4 replies)
microsoft.public.dotnet.framework.clr
I'm trying to get a list of all of the referenced assemblies from my current assembly. However, when I call Assembly.GetExecutingAssembly().GetReferencedAssemblies(), it only seems to return the assemblies that have been loaded, and not the entire list of dependent assemblies. Am I doing something wrong, or is there another way to do this?
clr performance degradation for math intive program (3 replies)
microsoft.public.dotnet.framework.clr
I had to port some heavy math functions from matlab. It does a monty carlo simulation with pls regression. Now I rewrote the whole thing in c# with custom classes(mostly a matrix class, it's pretty heavy on arraylists). Now the first few time I ran it, it takes under 2 seconds to run. But over time, the performance starts to degrade and takes upto 3 minutes to run after 600 runs. The initial unman...
Looking for a free FTP class library for .NET (4 replies)
microsoft.public.dotnet.framework.clr
HI! Is there an free FTP class library for .NET available? Pawel
LoadFrom and casting (2 replies)
microsoft.public.dotnet.framework.clr
I'm having a problem casting an object from an assembly loaded with Assembly.LoadFrom. The following pseudo code gives an idea of what I'm trying to do: Assembly.LoadFrom( "myAssembly.dll" ); later, within myAssembly.dll: Message msg (Message)binaryFormatter.Deserialize( networkStream ); This cast fails and I get an IOException that myAssembly cannot be found. "Message" is defined in myAssembly.dl...
System.Threading.ThreadState enums (2 replies)
microsoft.public.dotnet.framework.clr
Who knows what are the actual values for System.Threading.ThreadState enums? What thread state are 100, 36, 68 map to? Thanks.
Retrieving Parameter Values (2 replies)
microsoft.public.dotnet.framework.clr
Hello, Does anyone know a simple way, perhaps through reflection, to retrieve the values of all of the parameters in a method? I am asking because I would like to create a custom exception class that provides these details to the caller because StackFrame with ParameterInfo doesn't provide any information relating to parameter values. Thanks, JZ
Help needed with embedded XML resource file (2 replies)
microsoft.public.dotnet.framework.clr
Hi, I have a an XML file embedded into my application assembly the XML file 'Build Action' is set to 'Embedded Resource'. What I'd like to know is the easiest way to get this XML file into an XmlDocument object within a class in the same assembly. So far, I can get hold of the XML file using System.IO.Stream stream (Assembly.GetExecutingAssembly().GetManifestResourceStream("MyAssembly.MyFil e.xml"...
unmanaged pointer and System.Runtime.InteropServices.GCHandle ? (4 replies)
microsoft.public.dotnet.framework.clr
I'm very confused with the difference of managed pointer and unmanaged pointer. One more thing is that according to partition III CIL.doc, unmanaged pointer can't reference memory that is controlled under garbage collection." If so, what for System.Runtime.InteropServices.GCHandle Structure? Its purpose is defined as "Provides a means for referencing a managed object from unmanaged memory." But, i...
Bug in CLR runtime verifier? CLR v1.1 setup? (5 replies)
microsoft.public.dotnet.framework.clr
In the attached IL program, there is a programming error: When assigning an element to a16[401] the "stelem.i4" is used. It should be "stelem.i2". The program assembles fine. If I do a peverify of the generated program.exe, I get the expected error: Unexpected type on the stack However, if I run this program, the runtime does NOT detect this as an InvalidProgramException (as it normally does), but...
Repro of JIT or Math library problem (3 replies)
microsoft.public.dotnet.framework.clr
Hi folks, The simple console program below is a repro (works both in .NET 1.0 and 1.1 beta) of a peculiar problem. At first glance, it looks like a simple precision issue, namely with use of the double data type. If you look closer, however, it's not so clear. I've run the code under four environments, with the following results: Debug config (no optimization) and debugger attached Result: True De...
Possible reflection bug (3 replies)
microsoft.public.dotnet.framework.clr
I've been using reflection to examine methods. I have a method that takes an array argument: public void MyMethod (String argument one, Type [] argument two) { ... } Via reflection, I can get a System.Reflection.RuntimeMethodInfo object for this method. The ToString method on that results in this: "Void MyClass.MyMethod(System.String, System.Type[])" I then iterate over the parameters of the metho...
Binding with application configuration file. (2 replies)
microsoft.public.dotnet.framework.clr
I am getting an error while trying to redirect a version of an assembly. I have the following configuration file: ?xml version "1.0"? configuration runtime assemblyBinding xmlns "urn:schemas microsoft com:asm.v1" dependentAssembly assemblyIdentity name "Foo" / publisherPolicy apply "no" / bindingRedirect oldVersion "1.0.0.0" newVersion "1.1.0.0" / codeBase version "1.1.0.0" href "file:///C:\Projec...
Edit and Continue (5 replies)
microsoft.public.dotnet.framework.clr
If the CLR team successfully implement this in the Yukon timeframe, will this also mean that I can load and unload assemblies without placing them into a separate app domain ?
"Invalid PInvoke metadata format" in OracleClient 1.1 Beta when loaded dynamically from 1.0 code (Advanced question) (5 replies)
microsoft.public.dotnet.framework.clr
Hi, I know that the .Net Framework 1.1 is in beta, but I would like to know if an assembly created with .Net Framework 1.0 can load dynamically an assembly created with .Net Framework 1.1 and call its methods or if this scenario is not supported. I ask this because I have found an issue in the OracleClient 1.1 Beta when called dynamically from .Net 1.0 code. To know what I mean, follow these steps...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com