Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another VFP9 SP2 bug?
Message
 
 
To
08/11/2007 07:44:27
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01267554
Message ID:
01267796
Views:
17
I can confirm that it's a bug. The code works fine in SP1 and blows up in SP2.

>Someone could download the following file and do some tests to confirm if this is another VFP9 SP2 bug?
>
>VFP9SP2Bugs.zip
>
>Just unzip the file in c:\ (a folder named VFP9SP2Bugs will be created - doesn't work if you extract to another folder), compile the project, run VFP9SP2Bugs.exe.
>
>Select Test > Bug 1 options from main menu.
>
>Bug 1 (Fatal Exception) menu option will cause a C5 error.
>Bug 1 (No Error) menu option will run as expected.
>
>So, lets explain whats happening...
>
>I've created a grid class (UserGrid), a column class (UserColumn) and a header class (UserHeader).
>UserGrid was created visually but UserColumn and UserHeader classes are non visual classes and was defined in main.prg.
>I'm setting HeaderClass and HeaderClassLibrary of UserColumn properties to use UserHeader class instead of VFP native header class.
>I've created a form (TestBug1) and place an instance of UserGrid on it and set ColumnCount property to 5.
>All created columns and headers derived correctly from UserColumn and UserHeader classes.
>I've created a menu (UserMenu) to call the TestBug1 form with the UserGrid and:
>
>1A- If I set the "result" property of menu option to "command" and place a Do Form TestBug1, a C5 Error Fatal Exception Occurs;
>1B- If I set the "result" property of menu option to "command" and place a Do Form TestBug1, and reset ColumCount property of UserGrid to -1, the form runs as expected, without errors;
>2- If I set the "result" property of menu option to "procedure" and place a Do Form TestBug1 inside the procedure, the form runs as expected, without errors.
>
>If I do all these things in VFP9 without any SP's, everything works as expected.
>
>This is really a bug in SP2? If yes, is a menu or a grid issue?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform