bugs

Why does my Delphi 7 Debugger randomly decide to stop accepting certain keyboard input

Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them. For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other key seems to work leading me to think it's some sort of interr...

Overriding the java equals() method quirk

I ran into an interesting (and very frustrating) issue with the equals() method today which caused what I thought to be a well tested class to crash and cause a bug that took me a very long time to track down. Just for completeness, I wasn't using an IDE or debugger - just good old fashioned text editor and System.out's. Time was very ...

Weird positioning behaviour using ASP.Net, CSS, VS 2008, in IE7

I am working on a webpage in ASP.Net/C# that uses absolute positioning for a textbox, for several in fact. It was working just fine, until I added some more text boxes. That is, the existing text boxes still positioned correctly, but the new ones did not, despite the fact that I created new styles in the CSS for them just like the others...

What is your best/funniest/annoying performance tuning experience?

Often we find changing a few lines of code makes n-fold performance increases in applications. One such experience for me was fixing an issue in the configuration library. The library was based on XML configuration file and XPath was used to access the configuration. During profiling, I found an enormous number of XPath objects and call...

ArrayIndexOutOfBoundsException in XMLEntityScanner.peekChar reading XML from HttpRequest

I'm reading XML data from the HttpServletRequest in my servlets doPost() and passing the Reader from req.getReader() to a JAXB unmarshaller. I've tried a couple of different input XMLs but I always get this exception. SEVERE: Servlet.service() for servlet RESTPhotoAdmin threw exception java.lang.ArrayIndexOutOfBoundsException: 8192 ...

TransactionScope bug in .NET? More information?

I have read (or perhaps heard from a colleague) that in .NET, TransactionScope can hit its timeout and then VoteCommit (as opposed to VoteRollback). Is this accurate or hearsay? I couldn't track down information on the web that talked about this issue (if it IS an issue), so I wonder if anyone has any direct experience with it and can ...

Why would waveOutWrite() cause an exception in the debug heap?

While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here will at least serve to document my findings. First, the symptom: While running pretty standard code that uses waveOutWrite() to output PCM audio, I sometimes ge...

Java version names in Sun's bug database

In http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6525150 it says Release Fixed 7(b14), 6u2(b01) (Bug ID:2147561) What does 6u2 mean? (Am I right in assuming it as 1.6.0_02 ?) ...

Internet explorer hanging issue

I'm currently experiencing an intermediate problem with some inherited client side javascript. Every so often the users' experience a browser hang with the cursor becoming an egg timer and then the browser failing to respond. I'm having real difficulty in determining where the issue is arising from. Short of disabling large chunks of j...

Need Help: VS 2005 Properties Changing

I am working in Visual Studio 2005. I have multiple splitters on the screen. I have set the splitters IsFixed and I have also set fixed panel sizes. In addition to this I have locked the control. For some reason, when I switch into debug mode the splitter distance value is changing entirely on its own. These changes do not take place wit...

Calculating grand totals from group totals in Reporting Services

I have some data grouped in a table by a certain criteria, and for each group it is computed an average —well, the real case is a bit more tricky— of the values from each of the detail rows that belong to that group. This average is shown in each group footer rows. Let's see this simple example: What I want now is to show a grand tota...

What do you think when a Boolean "if" has three resulting code paths?

(Background: from a previous job, a co-worker and I would end up discussing the bug pile during lunch. We began to develop a topic called "bug of the week". I doubt I have material for 52 posts a year, but here's the first one...) Reported by: QA tester was reading HTML/JS code to write a functional test of a web form, and saw: if (fo...

Continuous Integration: how do you tie back your builds to requirements/tasks/bugs?

How do you answer the following questions from managers, testers and other people in your team: In what build is bug #829 fixed? What tasks have been completed in our current test build? So simply put, how do you achieve traceability of your requirements, tasks and bugs right from them being reported reporting through to deployment? Wh...

Is this a bug in DirectoryInfo.GetDirectories(string searchPattern)?

When calling DirectoryInfo.GetDirectories(".") on an instance of a DirectoryInfo class which points to a valid folder (excluding drive roots), the result is a DirectoryInfo array whose first (and only) element points to a invalid directory named the same as itself, below itself. For example: static void Main(string[] args) { Direct...

What are terms used to describe the act of solving a bug?

Hi, What are terms/slangs used to describe the act of solving a bug? e.g. squashed the bug Others? ...

A better way of forcing data bound WPF ListBox to update?

Hi,, I have WPF ListBox which is bound to a ObservableCollection, when the collection changes, all items update their position. The new position is stored in the collection but the UI does not update. So I added the following: void scenarioItems_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChange...

What you do as developer with non-bugs client requests, f.e small fix in UI?

Hello! I am only one person working on project - so I am developer without PM above me. I finished portal, hovewer client from time to time attacks me with request such as "make font bigger" or change margin in css or make button which makes "xxx and yyy". There are simple task, sometimes only for few clicks, but it takes my time and I ...

How to cope with "disk full" scenarios?

The vast majority of applications does not handle "disk full" scenarios properly. Example: an installer doesn't see that the disk is full, ignores all errors, and finally happily announces "installation complete!", or an email program is unaware that the message it has just downloaded could not be saved, and tells the server to delete...

How can I Forward an Email to FogBugz and Have it Make it into a Bug?

I didn't see it in the help but I figure it's possible. Also how do I find out what email address to use? ...

Visual Studio Editor does not underline errors anymore

My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed and uninstalled both CodeRush and Resharper for evaluation purposes (decided n...