General information
Title:
Buffer overrun detected error
Environment versions
Network:
Windows 2003 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only