Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 167147 - Last Review: October 16, 2002 - Revision: 1.0
FIX: Invalid Page Fault Occurs After Replicate of Enter Key
This article was previously published under Q167147
After using the REPLICATE function on the Enter key, Visual FoxPro causes
an Invalid Page Fault to occur. This occurs after clicking into any active
window after the REPLICATE function has been performed.
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 5.0a for Windows.
Steps to Reproduce Behavior
- Copy the following lines of code into a .prg file and run it:
PUBLIC x
x = CREATEOBJECT( 'form1' )
x.Show
**************************************************
*-- Form: form1 (h:\vfp5\misc\cyrus_edt2.scx)
*-- ParentClass: form
*-- BaseClass: form
*
DEFINE CLASS form1 AS Form
Top = 0
Left = 0
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT edit1 AS EditBox WITH ;
Height = 217, ;
Left = 12, ;
Top = 12, ;
Width = 121, ;
Name = "Edit1"
PROCEDURE Click
KEYBOARD REPLICATE( "a{enter}", 60 ) PLAIN
KEYBOARD REPLICATE( "a{enter}", 60 ) PLAIN
KEYBOARD REPLICATE( "a{enter}", 60 ) PLAIN
KEYBOARD REPLICATE( "a{enter}", 60 ) PLAIN
ENDPROC
ENDDEFINE
*
*-- EndDefine: form1
************************************************** - Click anywhere on the form outside of the Edit box region.
NOTE: this populates the edit region with multiple lines of the letter
"a."
- Click into any active window outside of the form, such as the Command
window.
NOTE: The error is generated.
APPLIES TO
- Microsoft Visual FoxPro 5.0 Standard Edition
| kbbug kbfix kbvfp500afix KB167147 |
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
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