
Signature
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
Hi Eric,
Here is the step:-
1) Firstly create a custom class and within it create a method call
testmethod() with these parameters
Parameters
longVariableName1_c,longVariableName2_c,longVariableName3_c,longVariableName
4_c,longVariableName5_c,longVariableName6_c,longVariableName7_c,;
longVariableName8_c,longVariableName9_c,longVariableName10_c,longVariableNam
e11_c,longVariableName12_c,longVariableName13_c,longVariableName14_c,;
longVariableName15_c,longVariableName16_c,longVariableName17_c
NOTE : If I use shorter variable name it works fine.
2) Create a form and add the custom class into it.
3) Open the code viewer and try to view TestMethod() in the custom class.
After you view the TestMethod() move to another method and come back to
TestMethod() again, buffer overrun will occur.
"Eric den Doop"
> Hello, Eric!
>
> I can't reproduce this behavior. I tried it with a blank VFP form and a
> subclassed Label control and a custom method called Dummy. Can you post the
> exact steps to reproduce the error?
Fred Taylor - 13 Apr 2004 06:48 GMT
So why do you need these long variable names? You can certainly use shorter
names in your COM object, long names for variables are not required.
Fred
Microsoft Visual FoxPro MVP
> Hi Eric,
>
[quoted text clipped - 4 lines]
>
> Parameters
longVariableName1_c,longVariableName2_c,longVariableName3_c,longVariableName
> 4_c,longVariableName5_c,longVariableName6_c,longVariableName7_c,;
longVariableName8_c,longVariableName9_c,longVariableName10_c,longVariableNam
> e11_c,longVariableName12_c,longVariableName13_c,longVariableName14_c,;
> longVariableName15_c,longVariableName16_c,longVariableName17_c
[quoted text clipped - 14 lines]
> the
> > exact steps to reproduce the error?
Eric den Doop - 13 Apr 2004 10:08 GMT
Hello, Eric!
OK, I was able to reproduce this in VFP8SP1.

Signature
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8