| RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To |
| Look Ma, I've found a BUG | ||||||||||||||||||||||||||
| How do you know if a bug in your Delphi application is really yours? Windows applications are NOT bug-free; Delphi is no exception to this rule. | ||||||||||||||||||||||||||
In computer technology, a bug is a coding error in a computer program that causes an application to malfunction.
No matter how careful you are, a program you are currently developing will probably contain some bugs. Even if the code is perfect, it must be prepared to handle unexpected conditions such as missing files, network failure, and other applications using all of the system's resources.
Figuring out where you application crashed might take some time. Someone once wrote that "the most bug-free line of code is the one you don't have to write". This is true, but you might "write" a buggy Delphi application with no code at all. How's that? Delphi, as a Windows application, has its own bugs! Various bugs have various severity, some of the bugs have a workaround some of them have not. For example, the StateImage property for a TreeWiev will not display the 0th element in the TImageList. This bug is a just a basic IDE functionality failure - Delphi will still work. Another example of a bug in Delphi is more serious. Right click|New procedure in the Code Explorer
while it is busy updating itself from a large file (e.g. Windows.Pas), generates AVs. After this, you'll need to restart Delphi. Note that the above bug examples might not exist in your (newer) Delphi version.
One excellent method of proactive error prevention is to always keep the current with all updates and patches for whatever edition and version of Delphi (BDE, ADO, ...) that you are using. Always have the latest patch for Delphi - the number of your programs bugs will drastically decrease.
The first question that pops up is: how do I know if a bug in my Delphi application is really "mine"?
Borland's QualityCentral Bug reports? This is what one "bug-report" looks like:
BugyJuice |
||||||||||||||||||||||||||
All graphics (if any) in this feature created by Zarko Gajic.
| More Delphi |
|
· Learn another routine every day - RTL Quick Reference. · Download free source code applications and components. · Talk about Delphi Programming, real time. · Link to the Delphi Programming site from your Web pages. · Tutorials, articles, tech. tips by date: 2001|2000|1999|1998 or by TOPIC. |
|
· NEXT ARTICLE:
Charting with Databases - DB/14. Chapter fourteen of the free Delphi Database Course for beginners. Introducing the TDBChart component by integrating some basic charts into a Delphi ADO based application to quickly make graphs directly for the data in recordsets without requiring any code. |
| Stay informed with all new and interesting things about Delphi (for free). |
|
|
| Got some code to share? Got a question? Need some help? |

