microsoft.public.dotnet.framework.clr Archive - February 2002
Post a message to this list
Messages
Page: 1
DateTime wrapper.. (6 replies)
microsoft.public.dotnet.framework.clr
Hi All, Has anybody written a wrapper class around DateTime so that I can accept "null". dtWrapper dt null; Thanks,
specified cast is not valid (4 replies)
microsoft.public.dotnet.framework.clr
I am getting this exception raised in the following code: DomainGateway is a class defined in TypeServices namespace which is inside TypeServices.dll DomainGateway gateway; ObjectHandle oh domain.CreateInstanceFrom("TypeServices", "TypeServices.DomainGateway"); System.Object obj oh.Unwrap(); gateway (DomainGateway)obj; THIS RAISED THE EXCEPTION
Multithreading and concurency issues with class methods (2 replies)
microsoft.public.dotnet.framework.clr
I would like to know if anyone knows the real story behind class methods and members (static). Really all I'm looking for is a straight up answer regarding thread safety using my own static methods in .NET. Can you have concurrent access to a classes static method without serializing access to it? Thanks, Eric
c# ISAPI (2 replies)
microsoft.public.dotnet.framework.clr
Anyone please give me some hints and links on how to write an ISAPI filter in C#. Thanks in advance. Kazi
Getting at static members of dynamically loaded classes (2 replies)
microsoft.public.dotnet.framework.clr
I am writing an app in C# that uses plug in tools created by other developers. These tools are just subclasses of a class in my app. I know how to load assemblies dynamically, iterate over the types in the assembly, and instantiate types as needed. However, I would like to be able to get at the contents of static members of these types before they are instantiated, because there will be a lot of t...
How does it work-CLR-ISAPI-behind the scene (5 replies)
microsoft.public.dotnet.framework.clr
Hi, How does the Web Application work? What happens behind the scene? The way I would think it works is that all the page behind classes, user control classes are compiled into the application DLL. The aspx ISAPI filter looks for the DLL in the "bin" directory of the virtual root and loads it. Of course! the 46(or whatever) web controls that MS defines are displayed nicely on the client pages (ex....
CLR Bug? Exceptions in CTORs (2 replies)
microsoft.public.dotnet.framework.clr
if an exception raised in a ctor the class finalizer is never called code class Class1 { public class resourceHang : IDisposable { public int a,b; public resourceHang(int a) { this.a a 1; b 89/a; } void IDisposable.Dispose() { a 1; Console.WriteLine("Dispose resource"); } ~resourceHang() { Console.WriteLine("Free resource"); } } [STAThread] static void Main(string[] args) { try { using(resourceHan...
FormatMessage Call in C# (3 replies)
microsoft.public.dotnet.framework.clr
Hello All, I want to call FormatMessage() to the string of the last error. Can anyone help out? Here what I've done with no success. [DllImport("kernel32.dll")] private unsafe static extern int FormatMessage( uint dwFlags, // source and processing options int* lpSource, // message source uint dwMessageId, // message identifier uint dwLanguageId, // language identifier char* MsgBuffer, // message b...
Custom Attributes (3 replies)
microsoft.public.dotnet.framework.clr
Is there a way of obtaining just the custom attributes attached to the currently executing method? I don't want to have to pass the method name to GetCustomAttributes or GetMethods, I'd rather just get a MethodInfo class for the currently executing method. Thanks for any help Graham Allwood.
Dispose, DisposeObject, destructor and Finalize.... (5 replies)
microsoft.public.dotnet.framework.clr
Can someone explain me the difference between Dispose DisposeObject Destructor (e.g. ~MyClass(){} ) Finalize I would like to know what the difference is between these four things plus when which one is called Thanks Klaus Salchner Director of Engineering Thinq Learning Solutions
VB.net Service App. Problem (2 replies)
microsoft.public.dotnet.framework.clr
Hi all, I've created my service app. just fine using VB.NET. The problem comes when I now try to add a user interface to it. The app. needs to run even when nobody is logged on. I achieve this by setting the service properties in the SCM to run as Local Service account and startup to Automatic. But when somebody has logged on, I want my service to display an icon in the system tray area. I've trie...
Is it impossible? (2 replies)
microsoft.public.dotnet.framework.clr
I want to pass an object (which has some methods invoked by client) by value with a tcp channel, but the object itself should not be deployed on the client. Is it possible? Please help. BTW:I have tried to deploy a object which declare a interface of that object on the client. but it doesn't work.(it only work if you pass an object by reference)
static members vs. instance members... (8 replies)
microsoft.public.dotnet.framework.clr
Is there any guideline when to use static members and when to use instance members? If I am not mistaken calling a static member of a class is faster then an instance member, because I avoid creating an object instance plus the cross over from my object to the other one....(is this even correct?) Any comments ar welcome... Klaus Director of Engineering Thinq Learning Soltuions
How to select a directory (2 replies)
microsoft.public.dotnet.framework.clr
Hello: Instead of using OpenFileDialog class to open a dialog box to let user select a file. Is there any class or function to let user open a dialog box like OpenFileDialog to select a directory? Regards Stephen
CookieContainer and CookieCollection (2 replies)
microsoft.public.dotnet.framework.clr
Hi, I am confused about how CookieContainer and CookieCollection work when using HttpWebRequest and HttpWebResponse. What I am doing is creating an (empty) instance of CookieContainer and 'setting' that with HttpWebRequest's 'CookieContainer' property. I can then get a CookieCollection by 'getting' from HttpWebResponse's 'Cookies' property once I have retrieved the web page from the server. Fair e...
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