My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
Go to Article
Advanced Search 

ADVISOR ANSWERS

Dealing with Errors in Microsoft Visual FoxPro

Learn how to have your Visual FoxPro application send error reports to the manufacturer or to Microsoft.

 DOWNLOAD (104,234 bytes) -- Get the code discussed in this article.
By Christof Wollenhaupt


Q: These days many applications want to send error reports to the manufacturer or to Microsoft. Is there a way to do something similar in my Visual FoxPro application?

A: Dealing with errors is not an easy thing to do in an application. There's no Holy Grail, no single solution that fits every application. Many contradicting aspects need to be balanced. Even the law can be an issue. Let's look at a few issues before I present an error dialog with a feedback option.

The first question you need to answer is who the audience for the error message is. Most users gain very little from error dialogs. Typically, they print and send them to you, or they use them to recognize known bugs they can safely ignore. They rarely help users to fix the problem, though. A "file not found" error when printing a report might tell you that a report file is missing. For most users, this message isn't any different from the stack dump messages we see when VFP crashes.

Many applications therefore provide only simplified error messages stating that an error has occurred without going into any detail. Advanced users benefit from some messages if they can fix them with simple configuration steps. Anything beyond that is usually only interesting to administrators, developers and hackers.

This raises the next issue that needs balancing. If your users send bug reports at all, what you frequently get is a screen shot of the error dialog put into a Word document or sent as a fax. They don't tell you what they did, they don't send any of the log files your application might create, nothing. Hence, many developers try to put sufficient information into the dialog, not for the user, but for the developer who gets the screen shot.

While this helps the developer in fixing the problem, it confuses the user and provides information to unauthorized people. If you are a hacker that wants to obtain source code or data, it's always helpful to have as much information as possible. For example, you can use the report designer to open any VCX file that's included in the EXE. However, you need to know the precise name of the VCX library. An error message reveals this missing piece.

What do YOU think about this topic? Share your advice and thoughts using this form.

Your Name

REQUIRED : PUBLIC

Your E-Mail

REQUIRED : PRIVATE

Job, Company

OPTIONAL : PUBLIC

City, State, Country

OPTIONAL : PUBLIC

Your Web Site

OPTIONAL : PUBLIC

Your Comment

Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

Printer-friendly
page layout

Keyword Tags: Error reports, Microsoft, Microsoft Visual FoxPro

ADVISORAMA
It's not hard to meet expenses... they're everywhere.

ARTICLE INFO

DataBased Advisor

Web Edition: 2007 Week 38, Doc #19193

Print Edition: September 7

FREE ACCESS FREE ACCESS


 Article files are on this issue's Resource CD.
File: Get the code discussed in this article.
DOWNLOAD: 104,234 bytes

SUBSCRIPTION STATUS
You are not signed-in. If you are a subscriber to this publication, sign-in above to access locked articles. To subscribe or renew go to www.AdvisorStore.com.

Subscribe to FileMaker Advisor Magazine

Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

FileMaker.Advisor.com

Subscribe to Advisor Basics of FileMaker Pro

Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

FileMaker.AdvisorBasics.com

Showcase Your Smarts

Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

AdvisorTips.com

Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
Hosted by Prominic.NET Website powered by
LOTUS SOFTWARE
granl81-04 posted 09/17/2007 modified 12/03/2008 03:34:45 AM ztdbms/ztdbms
domino-144.advisor.com my.advisor.com 12/03/2008 05:53:36 PM