¡@

Home 

c# Programming Glossary: bug

Silent failures in C#, seemingly unhandled exceptions that does not crash the program

http://stackoverflow.com/questions/1583351/silent-failures-in-c-seemingly-unhandled-exceptions-that-does-not-crash-the-pr

Turning on Stop on first chance exception will make the debugger to stop in this scenario. But it does make the debugger to.. debugger to stop in this scenario. But it does make the debugger to stop very often so you might want to do this only when.. want to do this only when you find a problem. The linked bug report was last updated February 2008 and doesn't indicate what's..

Calculate the number of business days between two dates?

http://stackoverflow.com/questions/1617049/calculate-the-number-of-business-days-between-two-dates

Edit by Slauma August 2011 Great answer There is little bug though. I take the freedom to edit this answer since the answerer.. 1 in this case but it should be 0 . Easiest fix for this bug Replace in the code above the lines where firstDayOfWeek and..

FileSystemWatcher Changed event is raised twice

http://stackoverflow.com/questions/1764809/filesystemwatcher-changed-event-is-raised-twice

this question I am afraid that this is a well known bug feature of the FileSystemWatcher class. This is from the documentation..

Serializing and Deserializing Expression Trees in C#

http://stackoverflow.com/questions/217961/serializing-and-deserializing-expression-trees-in-c-sharp

it and now it works with .NET 4.0 and Silverlight. I made bug fixes to their code and also made it more DAL independent. http..

how can you easily check if access is denied for a file in .NET?

http://stackoverflow.com/questions/265953/how-can-you-easily-check-if-access-is-denied-for-a-file-in-net

to track down later and makes it easy for this kind of bug to make it into production. What this means is that you still.. code that must be maintained and it can introduce subtle bugs into your code. There is just no upside at all to doing the..

What do 'statically linked' and 'dynamically linked' mean?

http://stackoverflow.com/questions/311882/what-do-statically-linked-and-dynamically-linked-mean

both good and bad on one hand it allows easier updates and bug fixes on the other it can lead to programs ceasing to work if.. can drop in a new DLL at any time to provide updates or bug fixes. As stated earlier this has both advantages and disadvantages...

Deserialize JSON into C# dynamic object?

http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object

is suggested here . I modified the code slightly to fix a bug and suit my coding style. All you need is this code and a reference.. this approach. EDIT I updated the code to fix a small bug with lists of complex types and to include a ToString method.. that outputs the JSON string which I found useful for debugging. You can drop the two methods out if you don't want them..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

of TargetType i.e. if it's not that means there's a bug then casting is the right solution. That throws an exception.. assumptions and the exception correctly shows the type of bug. This will throw an exception if randomObject is non null and..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

Dispose in case the user forgot to Dispose Warning subtle bug Keep reading But there's a bug in that code. You see the garbage.. to Dispose Warning subtle bug Keep reading But there's a bug in that code. You see the garbage collector runs on a background.. on a junk object reference. But that didn't stop a subtle bug from creeping in. When the user calls Dispose the handle gdiCursorBitmapStreamFileHandle..

How to write a scalable Tcp/Ip based server

http://stackoverflow.com/questions/869744/how-to-write-a-scalable-tcp-ip-based-server

exception e try warning only call this once this is a bug in .net 2.0 that breaks if you're running multiple asynch accepts.. that breaks if you're running multiple asynch accepts this bug may be fixed but it was a major pain in the ass previously so.. at any one time. There used to be a very annoying .net bug around this which was years ago so I don't recall the details...

How can I ensure that a division of integers is always rounded up?

http://stackoverflow.com/questions/921180/how-can-i-ensure-that-a-division-of-integers-is-always-rounded-up

to emphasize its obvious correctness. And when you find a bug consider whether your algorithm is deeply flawed to begin with..

TypeLoadException says 'no implementation', but it is implemented

http://stackoverflow.com/questions/948785/typeloadexception-says-no-implementation-but-it-is-implemented

anyone else who has this problem. I've got a very weird bug on our test machine. The error is System.TypeLoadException Method..