Click here to Skip to main content
15,880,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: Static Analysis tools? Pin
Martin D18-Sep-02 23:13
Martin D18-Sep-02 23:13 
GeneralRe: Static Analysis tools? Pin
leppie18-Sep-02 23:42
leppie18-Sep-02 23:42 
GeneralRe: Static Analysis tools? Pin
James T. Johnson19-Sep-02 0:18
James T. Johnson19-Sep-02 0:18 
GeneralRe: Static Analysis tools? Pin
leppie19-Sep-02 0:27
leppie19-Sep-02 0:27 
GeneralRe: Static Analysis tools? Pin
James T. Johnson19-Sep-02 0:42
James T. Johnson19-Sep-02 0:42 
GeneralRe: Static Analysis tools? Pin
James T. Johnson19-Sep-02 4:17
James T. Johnson19-Sep-02 4:17 
GeneralRe: Static Analysis tools? Pin
leppie19-Sep-02 5:24
leppie19-Sep-02 5:24 
GeneralRe: Static Analysis tools? Pin
James T. Johnson18-Sep-02 23:53
James T. Johnson18-Sep-02 23:53 
Most of what FxCop looks for are design issues to try to stay compliant with what MS has outlined. Most of this is done just to make it so that a 3rd party using your library will know how to name stuff they wish to use (handy when you lack an IDE with intellisense Wink | ;) )

I wouldn't even bother replying if the comments generated weren't for your nBASS wrapper Wink | ;)

leppie wrote:
also the extra processing (repeated get/sets) makes it inefficient.

The JITter is generally smart enough to inline small methods to make the call non-existant. I'm not sure what you mean by chaining properties though.

leppie wrote:
Add a constructor with a string parameter to custom exception 'BASSException'. Add a constructor with a string parameter and exception parameter to custom exception 'BASSException'. (cont'd)

These are for consistancy, but the framework uses the information provided by them to customize the exception dialogs.

leppie wrote:
Add a protected constructor with a SerializationInfo object parameter and a StreamingContext object parameter to custom exception 'BASSException'. // again why? if you dont need it, why clutter your code with useless code?

This might be needed; not by you or your code but by the framework. The 'might' depends on how remote debugging works, if it attempts to serialize exceptions to send to the debugger then this function won't work for your code.

The only other time it is used is for serialization of your exception object for use in remoting, but I can't see your library being used in that situation Smile | :)

leppie wrote:
The type name 'Error' conflicts in whole or part with reserved keyword 'Error'. // reserved????

Error is a reserved keyword in VB.NET

leppie wrote:
Sign 'nBASS' with a strong name key. // not neccesary

Yes neccesary! For an example, create an application that is strong named and add a reference to nBASS, now try to build the application. You'll get an error (which stops the build) saying that nBASS isn't signed.

leppie wrote:
Add a GC.KeepAlive(this) to the method 'Void Stop()'.

The GC.KeepAlive method will hold a reference to the object passed in, so that it doesn't get collected prematurely.

I don't know the context in which this report is generated but for example you would use this to keep a reference to a delegate when you pass it to a P/Invoke'd method. Unless you use methods/properties of the delegate after the unmanaged method is done using it, the GC may see that the delegate isn't referenced anymore so it could perform a collection...invalidating your delegate and possibly doing bad things in the unmanaged function.

James
"And we are all men; apart from the females." - Colin Davies
GeneralRe: Static Analysis tools? Pin
leppie19-Sep-02 0:17
leppie19-Sep-02 0:17 
GeneralRe: Static Analysis tools? Pin
James T. Johnson19-Sep-02 0:38
James T. Johnson19-Sep-02 0:38 
GeneralRe: Static Analysis tools? Pin
leppie19-Sep-02 1:09
leppie19-Sep-02 1:09 
GeneralPopup menu Pin
Mazdak17-Sep-02 21:17
Mazdak17-Sep-02 21:17 
GeneralRe: Popup menu Pin
Stephane Rodriguez.17-Sep-02 21:45
Stephane Rodriguez.17-Sep-02 21:45 
GeneralRe: Popup menu Pin
Mazdak17-Sep-02 21:51
Mazdak17-Sep-02 21:51 
QuestionAuto-updater? Pin
floydboy5817-Sep-02 18:27
floydboy5817-Sep-02 18:27 
AnswerRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 1:16
Philip Fitzsimons18-Sep-02 1:16 
GeneralRe: Auto-updater? Pin
floydboy5818-Sep-02 1:52
floydboy5818-Sep-02 1:52 
GeneralRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 1:55
Philip Fitzsimons18-Sep-02 1:55 
GeneralRe: Auto-updater? Pin
floydboy5818-Sep-02 2:01
floydboy5818-Sep-02 2:01 
GeneralRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 3:19
Philip Fitzsimons18-Sep-02 3:19 
GeneralRe: Auto-updater? Pin
leppie18-Sep-02 3:58
leppie18-Sep-02 3:58 
GeneralRe: Auto-updater? Pin
Ray Cassick18-Sep-02 5:16
Ray Cassick18-Sep-02 5:16 
GeneralRe: Auto-updater? Pin
User 988518-Sep-02 5:44
User 988518-Sep-02 5:44 
AnswerRe: Auto-updater? Pin
Andy Smith18-Sep-02 4:55
Andy Smith18-Sep-02 4:55 
Questionhelp? Pin
imran_rafique17-Sep-02 15:33
imran_rafique17-Sep-02 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.