Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEMEditor and Buffer Overrun problems
Message
From
01/10/2009 09:52:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
PEMEditor and Buffer Overrun problems
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01427076
Message ID:
01427076
Views:
178
There have been a few reports over time with "Buffer Overrun" problems in PEM Editor. These errors crash VFP.

This message is a status report on what I have learned about these errors.

The actual error is an error in VFP9 SP1 and is completely independent of PEM Editor. The error can be reproduced when PEM Editor is not even open, by doing the following:

(A) Open up the form or class where the error occurs and, if necessary, select the appropriate object.

(B) Execute the following three lines, which should create an array called aMemberList containing, among other things, the descriptions for all the members:
? 0 # ASelObj (aObjects) or  0 # ASelObj (aObjects, 1)
aObj = aObjects(1)
? AMembers( aMemberList, aObj,3)
The last statement is the statement, as you will see, where the Buffer Overrun occurs, bombing VFP.

Unfortunately, there appears to be no way around this:

(1) Obtaining the list of member descriptions is an integral part of PEM Editor and cannot be removed
(2) There is no known alternative to aMembers to obtain the list of member descriptions.
(3) The conditions which cause the error are not known, so it is not possible to simply bypass this code conditionally.
(4) It is not possible to capture the error when it occurs; VFP just crashes.

Note that this error occurs in SP1 but apparently not SP2.
Jim Nelson
Newbury Park, CA
Next
Reply
Map
View

Click here to load this message in the networking platform