Re: [ADVANCED-DOTNET] Which is the best of bread metrics tool ?

2006-03-02 Thread Peter Ritchie
Are you doing any automatic FxCop analysis as well? On Thu, 2 Mar 2006 12:00:10 -0500, Luca Minudel <[EMAIL PROTECTED]> wrote: >>For my own curiosity, how will you be using these metrics? Will you be >>using them to monitor evolution of code (e.g. this week MethodA has >>increased in Cyclomatic

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Steve Johnson
On 3/2/06, Franklin Gray <[EMAIL PROTECTED]> wrote: > > How do I find this current user profile location for a windows service? > I've been searching all over and can't find anything. > More specifically, use the Environment.SpecialFolder.ApplicationData or .PersonalFolders, as appropriate. Most

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Steve Johnson
On 3/2/06, Franklin Gray <[EMAIL PROTECTED]> wrote: > > How do I find this current user profile location for a windows service? > I've been searching all over and can't find anything. > Call the Environment.SpecialFolder property and use the value as part of your filename. -- Steve Johnson =

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Franklin Gray
Thanksthat did it. === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Which is the best of bread metrics tool ?

2006-03-02 Thread Luca Minudel
>For my own curiosity, how will you be using these metrics? Will you be >using them to monitor evolution of code (e.g. this week MethodA has >increased in Cyclomatic Complexity by 5 or 10%)? Or would you be looking >to have the automated tool flag items based on configurable thresholds? >(e.g. on

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Dominick Baier
Environment.GetFolderPath will help here. cheers, dominick - Dominick Baier, DevelopMentor http://www.leastprivilege.com -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Franklin Gray Sent: Donnerstag, 2.

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Franklin Gray
How do I find this current user profile location for a windows service? I've been searching all over and can't find anything. >Unfortunately, you won't even be able to write there. Services always load >a profile, so you can use a CurrentUser profile location to write your file. > >-- >Steve Joh

Re: [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Peter Ritchie
Sorry, I should have been more clear. With C# calling C# there isn't an issue because there's no way in C# to generate user filters. That's not to say that for any publicly available C# method there won't be current user filter that will get a crack at running code before running the C# finally b

Re: [ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Dominick Baier
thanks! :) that what I meant with "and a lot more..." cheers, dominick - Dominick Baier, DevelopMentor http://www.leastprivilege.com -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Brian - IT Department

Re: [ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Brian - IT Department
Watch the default settings (from Dominick's blog): http://www.leastprivilege.com/BewareBeAwareOfClickOnceDefaultSettings.aspx On Thu, March 2, 2006 7:51 am, Simon Lovely said: > Dominic, > > I've looked at ClickOnce again. I'm impressed, so i'm updating all the > apps and scrapping our own system

Re: [ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Simon Lovely
Dominic, I've looked at ClickOnce again. I'm impressed, so i'm updating all the apps and scrapping our own system!! Cheers. -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Simon Lovely Sent: 02 March 2006 13:40 To: ADVANCED-DOTNET@DISCUS

Re: [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Eric Means
You say that "C# does not have filters (aka user filters) so this isn't an issue in C#" -- does this mean that you cannot be subject to such an attack in C#, or just that you can't implement one? i.e. is a C# method being potentially called by either a VB or C++ method similarly vulnerable? On 3/2

Re: [ADVANCED-DOTNET] Which is the best of bread metrics tool ?

2006-03-02 Thread Peter Ritchie
I haven't found a comprehensive metrics tool for .NET. There are tools out there that provide metrics based upon MSIL; but they, of course, ignore comments and provide skewed metrics that normally include comments (like Maintainability Index). The ones I've had time to looked: CodeMetrics reflect

Re: [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Peter Ritchie
Rethrowing shouldn't be as rare as you might think, at least with managed C++ and VB.NET, if you look at some of the security information on exceptions (http://tinyurl.com/h56tn [1]), which shows how code calling other code could actually manage to run with extended permissions. With filtered exce

Re: [ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Simon Lovely
Yeah, thanks Dominick, I have had a quick look at that, but was hoping to avoid having to change all of our apps. Plus our existing solution works with .net 1.1 as well. I will take a further look at it though to see if it's worth changing to. Thanks, Simon. -Original Message- From: D

Re: [ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Dominick Baier
Hi, maybe you want to have a look at ClickOnce - the new deployment strategy in 2.0 - which does exactly what you want - and a lot more... http://msdn.microsoft.com/msdnmag/issues/04/05/ClickOnce/ cheers, dominick - Dominick Baier, DevelopMentor http://www.leastp

[ADVANCED-DOTNET] .NET 2.0 Settings Problem

2006-03-02 Thread Simon Lovely
Hello all, I have a system to automatically update applications when they are run by the user. The idea came from a training course with DevelopMentor (Andrew Gayter). Basically, all the users machines have a shim application which just does this: private static void Main(string[] arg) { if ((

[ADVANCED-DOTNET] Which is the best of bread metrics tool ?

2006-03-02 Thread Luca Minudel
Hi all, I'm selecting a tool to collect OO metrics. The tool I'm looking for hopefully: - is integrated in VS.NET IDE and easy to use - have a command line version (to call it in the automatic night buid) and produce flexible (i.e. XML+XSLT->HTML) reports - compute/collect the most used OO metrics

Re: [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Jon Jagger
Yes. throw (ex); resets the stack trace whereas throw; retains the stack trace. Cheers Jon In the rare case were you catch and rethrow an exception, is there any difference between throwing the same exception, and using an empty throw? try { // some code } catch(SomeException ex) { // some c

[ADVANCED-DOTNET] RE : [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Geoff Taylor
Nope. The empty throw rethrows the exception without resetting stack trace information (the exception is propagated as if the catch block wasn't there). The "throw (ex)" line is a new throw that means the stack trace information points to this throw, not the previous, caught, throw.

[ADVANCED-DOTNET] RE : [ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread SOUMER Walid
The empty throw statement rethrows the exception handled by the catch. So it's exactly the same thing. Walid Soumer. Message d'origine De: Discussion of advanced .NET topics. de la part de Ragnvald Barth Date: jeu. 02/03/2006 09:16 À: ADVANCED-D

[ADVANCED-DOTNET] Rethrowing an exception

2006-03-02 Thread Ragnvald Barth
In the rare case were you catch and rethrow an exception, is there any difference between throwing the same exception, and using an empty throw? try { // some code } catch(SomeException ex) { // some code throw(ex); // rethrow like this? throw; // or rethrow like this? } =