[ADVANCED-DOTNET] Help! Need advice on best .NET resources!

2002-08-26 Thread Jerry
Greetings all! I am new to programming .NET and, to be perfectly honest, I'm not really an experienced programmer. I'm an engineer that is going to have to be doing some development. So, I'm looking for the best resources available for learning/developing in .NET. Where do you go for on-line i

Re: [ADVANCED-DOTNET] generic error handler / parameters passed

2002-08-26 Thread Craig Andera
Unfortunately, the answer is: write a debugger. Method parameters are not available at runtime from within the program. > -Original Message- > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED]] On Behalf Of Keyen > Sent: Sunday, August 25, 2002 12:0

Re: [ADVANCED-DOTNET] Finalizers not called in an interop scenari o?

2002-08-26 Thread chad . gross
I thought about this issue this weekend regarding finalizers and the finally not firing when Ctrl+Break, Ctrl+C, or when you close the command window. I remembered about the SetConsoleCtrlHandler API call that allows you to capture command window events. You can handle the C+Break, C+C, Close Wi

[ADVANCED-DOTNET] Math.Log odd rounding behavior

2002-08-26 Thread John Veson
Given the following simple program: using System; public class RoundingError { public static void Main(string[] args) { Console.WriteLine("Log2(8) = {0}", (int) Math.Log(8,2)); } } The output is 2 if you run it standalone, but 3 (the expected value) if run from within the Visual Studio.NE

[ADVANCED-DOTNET] NetworkStream.DataAvailable Bug??

2002-08-26 Thread Jim
I'm using a NetworkStream returned from TcpCLient.GetStream. The TcpClient is returned from TcpListener.AcceptTcpClient. When I call NetworkStream.DataAvailable, it always returns false unless I put a delay before the call, I've been using Thread.Sleep(50). Is this expected behavior for this c

[ADVANCED-DOTNET] generic error handler / parameters passed

2002-08-26 Thread Keyen
Hi, i'm trying write a generic error handler, something that will log the exception as well as the method called and the parameters passed to this method. How can i programmatically know which parameters have been passed to the method? i can see the details i need in the callStack window in the

Re: [ADVANCED-DOTNET] Building projects from the command line

2002-08-26 Thread wagner
Thanks! I am not the only one... :-) It must be a bug, time to create the workaround (again). Wagner Alcocer At 02:57 PM 8/23/2002 -0700, you wrote: >I have also found the null characters to show up when building a .NET >solution from the command line. It is not possible to parse the file w

Re: [ADVANCED-DOTNET] Building projects from the command line

2002-08-26 Thread wagner
I am afraid that is not the case. We tried with 3 different machines ( 1 dedicated to do builds only ) with the same results. We even tried with names with less than 8 chars, like ("c:\Try\XX2") so no double quotes are necessary, and we got the same thing. I am sure someone else has the same

[ADVANCED-DOTNET] Compiling a DSL in Visual Studio

2002-08-26 Thread Dejan Jelovic
Is it possible to have a compiler for a domain specific language compile some files that are part of a regular C# Visual Studio .NET project? I.e. I'd like the DSL compiler to take a class written in C# and some other input and produce another class that will be used by other C# classes inside th