microsoft.public.dotnet.framework.clr Archive - March 2002
Post a message to this list
Messages
Page: 12
Debugging of custom HttpHandler from Visual Studio .NET (2 replies)
microsoft.public.dotnet.framework.clr
I have written a sample HttpHandler, and have been able to invoke if from IE, and get some sample HTML output out. I'm trying to set up VS.NET to debug it, but I created the project as a C# dll, so it want some sort of starting point (makes sense). I tried to copy the debug settings from a ASP.NET and a Web Service project with no success. Does anybody know how to tell VS.NET that this is like a A...
Suspending/Resuming context during execution (9 replies)
microsoft.public.dotnet.framework.clr
I want to simulate a threaded environment, where each thread gets potentially up to a couple of seconds of timeslice time, and where thread pre empting occurs at controlled locations only. I don't want the overhead of actually having a thread so instead I want to round robin a set of objects that represent a job of somekind, and just let them have some CPU time (a timeslice), and repeat that until...
Web Service as primative anonymous proxy server (2 replies)
microsoft.public.dotnet.framework.clr
Hi, While playing around with Web Services and writing my first few test ones it seemed a fun idea to write a Web Service that guaranteed anonymity for someone who wished to download a file from the web without the hosting site being able to see that person's details, IP address, referer, etc. EG: User U wants file F from server S requests file from WS WS gets F from S hiding all of U's details (I...
How can I get text from text box? (3 replies)
microsoft.public.dotnet.framework.clr
I create a program using C# containing a TextBox control in a form called textBox1, the multiline is enable, how how can I get all the data from textBox1, include LR & LN(ENTER)? Thank you. ZhangZQ
Assemblies in Resource (2 replies)
microsoft.public.dotnet.framework.clr
I embedded an .EXE assembly of mine into my program by setting it as an "Embedded Resource" in the .EXE file's Build Action. Is it possible to locate this resource (.EXE assembly) during runtime, and treat it as an Assembly so that I can Invoke it? Regards, Vince
Problem in Math Library (3 replies)
microsoft.public.dotnet.framework.clr
Here is a sample of my C# code: double n Math.Log(8.0, 2.0); // 2^n 8, (n 3) double dRemainder Math.IEEERemainder(n, 1.0);// the remainder of (3.0 / 1.0) should be 0.0 My remainder value when debugging is correct: 0.0. My remainder value when I start without debugging is: 4.44...E 16. Has anyone else experienced this? Is this a bug? I need to use the Log function with other numbers and work! Thnks
XslTransform using strings. (5 replies)
microsoft.public.dotnet.framework.clr
Hi, Am I going crazy or is it very difficult to use the XslTransform class to do a transformation using data (strings in this case) held in memory? My software downloads a html file, performs some 'tidying' on it so that the html becomes xml and then needs to transform that xml into some new xml. At the moment I need to save the tidied xml to disk so that I can get the XslTransform class to do the...
POSTing binary data with HttpWebRequest (2 replies)
microsoft.public.dotnet.framework.clr
I can't figure out how to post data to the server and properly getting the data encoded. This is both for binary data or for data that includes say upper ANSI characters right now I'm getting garbage in my POST buffers. Here's what I'm doing: this.oPostStream new MemoryStream(); this.oPostData new BinaryWriter(this.oPostStream); this.oPostData.Write(" " this.cMultiPartBoundary "\r\n" "Content Disp...
code sharing between CLR processes? (4 replies)
microsoft.public.dotnet.framework.clr
If you start two .NET Frame applications in separate processes, does the CLR share any data between them? Things that could conceivably be shared; IL code, JIT'd code, etc. I would guess that any native code pages would be shared, but this is probably small potatoes compared to JIT'd IL code. Though this has long been talked about in Java circles, the only VM I know of that actually does it is App...
the GC has to do more. Or atleast i feel like it (repost) (6 replies)
microsoft.public.dotnet.framework.clr
Here's a problem i have Let's say u open a file in a try catch block. class A { void RandomFunctionABCD() { try { Now you are opening up the resource File N new File() ; // i am not familiar with .NET specifics } catch(ExpectedErrorType Error) { } } Now, let's say an expection is thrown such that Error is not compatible with ExpectedErrorType. Well, now during stack unwinding, there is a peusdo re...
StreamReader (3 replies)
microsoft.public.dotnet.framework.clr
I have a file with some accented characters. (Used when writing in French) I open my file like so: StreamReader sr FileOpenText("FileName.txt"); this.textBox1.Text sr.ReadToEnd().ToString() ; The text in the file looks something like this: Champagne cuvZe spZciale When I look at the text returned by the stream Reader, my accented characters, such as character 142, have been stripped from the strin...
Prevent someone from disassembling you code ? (14 replies)
microsoft.public.dotnet.framework.clr
Is there a way to prevent someone from disassembling the il code ? Because, if I have a windows program that connect for example to a sql server. If someone make a ildasm on my app, he will see the connection string... Thanks
fatal stack overflow bug (5 replies)
microsoft.public.dotnet.framework.clr
C# .NET Compiler version 7.00.9466, .NET Framework version 1.0.3705, Win2k SP2 When I try to execute the following code, I get a popup dialog "Common Language Runtime Debugging Services Application has generated an exception that could not be handled." and "Fatal stack overflow error." in the output. Expected behavior: thrown System.StackOverflowException. For example, if you comment out the "char...
object.Equals (5 replies)
microsoft.public.dotnet.framework.clr
Hi folks! I don't understand why MessageBox.Show(Message.Equals("test", "test")); displays true when "test" and "test" represent 2 different instances of an string object. Adnan
How can I find a "Thread" in the ProcessThreadCollection? (6 replies)
microsoft.public.dotnet.framework.clr
If I've created Threads in the "conventional" way: ThreadStart worker new ThreadStart(target); Thread t new Thread(worker); t.Start(); I can't find any way to match those Threads up with the ProcessThread objects that I can get from Process.Threads. What am I missing? Bert Hyman | St. Paul, MN | bert@visi.com
Cordbg (2 replies)
microsoft.public.dotnet.framework.clr
Hi , Its regarding Cordbg tool, when i write a code like this in C# class hello { public static void Main(string[] arg) { System.Console.WriteLine("hello TCS"); }} and run hello on Cordbg tool and then say "show" I am able to see the code on cmd line But Once i put any constant "int pali 7" like this in code class hello { int pali 7; public static void Main(string[] arg) { System.Console.WriteLine...
how can I get the desktop size by C# (2 replies)
microsoft.public.dotnet.framework.clr
how can I get the desktop size by C#? ZhangZQ
Is VC7 unmanaged code really 50 times slower than VC6? (7 replies)
microsoft.public.dotnet.framework.clr
I have been using VC7 (full release version) since it was released, give or take a day or two. My immediate reaction was that the CLR concept is a brilliant idea, but my code (unmanaged C ) felt a bit slow. Amongst other things, I'm involved in a project that is implementing a wide variety of parsers for various proprietary and not so proprietary file formats, which has resulted in a number of rec...
SERIOUS! BUG: Late-Bound Invocation for Derived Classes (4 replies)
microsoft.public.dotnet.framework.clr
According to "9.8.1 Late Bound Invocation Expressions" in ms help://MS.VSCC/MS.MSDNVS/vbls7/html/vblrfVBSpec9 8 1.htm "It is important to note that late bound invocation is done solely off the run time type of the invocation target and arguments. If an argument's compile time type is Base, but its run time type is Derived (which derives from Base), overload resolution will use Derived as the type ...
serializing arrays of enum (4 replies)
microsoft.public.dotnet.framework.clr
I noticed a problem with deserializing an array of a structures which contain an enum. The setup looks like this: enum MyEnum { blah } struct MyStruct { MyEnum blah; } class MyClass { public MyMethod ( out MyStruct[] list ); } When my method is called, the deserialiation code throws the exception: Unhandled Exception: System.Runtime.Serialization.SerializationException: The object with ID 4 was re...
double new (2 replies)
microsoft.public.dotnet.framework.clr
how C# handle this situation treeView new System.Windows.Forms.TreeView(); treeView new System.Windows.Forms.TreeView(); double allocate. ZhangZQ
The Reason why i feel that now is a bad time to program in .NET (10 replies)
microsoft.public.dotnet.framework.clr
Well, Here's my main concern now about programing in .NET. In about a few months, once MS introduces templates(generics), then the entire structure of ..NET platform would change. Many data orgranizations structures like SortedList, ArrayList, etc etc that are underlying building blocks of many objects would then be adopted to a stl (C std namespace) like approach. That would mean that almost the ...
Reflection (2 replies)
microsoft.public.dotnet.framework.clr
Hi all. Is there a way to reflect on a method's caller? Dave
Attributes (5 replies)
microsoft.public.dotnet.framework.clr
I am trying to access an attribute in an assembly I have opened using reflection. GetCustomAttributes does return the attribute I am after as an object. Why can't I cast that object to the attribute type I am after? assemblyObj [Assembly].LoadFrom (NameOfAssembly) Dim o() As Object o assemblyObj.GetCustomAttributes(True) Dim s As Object For Each s In o Debug.WriteLine(s.GetType.ToString) If TypeOf...
why Static constructors are always called before .entrypoint? (4 replies)
microsoft.public.dotnet.framework.clr
Hi, why Static constructors are always called before .entrypoint? class hello { public static void Main() { Console.WriteLine("hello"); } static hello() { Console.WriteLine("static constructors"); } } Output static constructors hello
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification