Microsoft Knowledge Base Email Alertz

KBAlertz.com: When you do the following: Windows displays an application error message, and Visual FoxPro is terminated. The message displayed depends on the operating system:

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 197193 - Last Review: October 16, 2002 - Revision: 1.1

FIX: Application Error in Locals Window with Specific Variables

This article was previously published under Q197193

On This Page

SYMPTOMS

When you do the following:

  1. Run a program that uses several variables consisting of single alpha character names.
  2. Release a form.
  3. Scroll the Debugger Locals window to look at some of the variable values.
Windows displays an application error message, and Visual FoxPro is terminated.

The message displayed depends on the operating system:

  • Under Windows NT, an error message similar to the following appears:
    An application error has occurred and an application error log is being generated.

    vfp.exe
    Exception: access violation (0xc0000005), Address 0x0043e8db
  • Under Windows 9x, an error message similar to the following appears:
    This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.
    If you click Details in the dialog box, a message similar to the following appears:
    VFP caused an invalid page fault in module VFP.EXE at 0137:0044940e.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual FoxPro 6.0.

MORE INFORMATION

Steps to Reproduce Behavior



  1. Run the following code from a program (.prg) file:
          SET STEP ON
          CLEAR DEBUGGER
          STORE .t. to a,b,c,d,e,f,g,h
          KEYBOARD "{enter}"
    
          TheForm=CreateObject("aForm")
          TheForm.show
          READ events
          RETURN
    
          DEFINE class aForm as form
             ADD object aButton as commandbutton
             PROCEDURE aButton.click
                thisform.release
             ENDPROC
          ENDDEFINE
    							
  2. Switch to the debugger by pressing ALT+Tab.
  3. Scroll down in the Locals Window to the last item by clicking on the down arrow in the Locals Window scroll bar.
  4. The Locals window scroll bar must be visible for this behavior to occur. If you do not see the error, you can make the Locals window shorter by resizing it with the mouse, and repeating the steps.
RESULT: You will receive an application error that will vary depending on the operating system. See the SYMPTOMS section above for details. The addresses may vary depending on operating system version or Visual FoxPro 5 build number.

This only happens with these specific variable names. If you modify the STORE command in the program above to read as follows, the behavior does not occur:
   STORE .t. to aa,bb,cc,dd,ee,ff,gg,hh
				
As a rule, it is a good idea to avoid the letters "A" through "N", uppercase or lowercase, for variable, field, or table names. Visual FoxPro uses these as default alias names for tables when tables are opened and their names are already in use.

Example:
   USE table1
   USE table1 AGAIN IN 0
				
The second table1 will be used under the alias A.

This error does not occur if you do not scroll in the Locals window.

(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Jim Saunders, Microsoft Corporation

APPLIES TO
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 5.0a
Keywords: 
kbbug kbfix kbmisctools kbvfp600fix kbxbase KB197193
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please