Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffer overrun detected error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Buffer overrun detected error
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01023297
Message ID:
01023297
Vues:
107
I found a FoxPro limitation related to Parameters statements when subclassing classes in visual class libraries (VCX). I had a parent class that has procedure with around 20 parameters in it. The total length of the Parameters statement was over 160 characters long. When I subclassed it can tried to modify that procedure and save it, I got this error repeatedly:

Buffer overrun detected!
Program...vfp8.exe
A buffer overrun has been detected which has corrupted the program's internal state. The program cannot continue execution and must now be terminated.

Then Foxpro crashed hard. I tried PACKing and compiling the class library. I rebuilt it from scratch and quite a few other things. The final solution was to reduce the length of the Parameters statement to below 160 characters.

I tested this same problem in classes created in a .PRG and did NOT have the same problem.

PS
I know 160 characters for a Parameters statement is a lot and should be avoided by good coding habits, but I happened to hit it this time and thought I'd share this undocumented limit with everyone else.

Matthew J. Price
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform