Useful Delphi Code
Summary
Just realised I havent written a blog post for 2.5 months, and Ive just got back from a lunchtime surfing session, so Im not really in the mood for real work. The full file with all the implementation can be found here: Source The following are useful for conditional logic for development vs production code, debugging, etc. : The following function is useful for preventing the unsitely errors that can occur as a Delphi Application throws Exceptions as it shuts down. While ideally this should never happen, previous exceptions can leave forms in a have constructed state, and the TApplications attempt to clean up them then causes horrible dialogs frightening users. The code hooks the various Exception raised pointed in the RTL to silently ignore the errors.