Hi
I will submit this bug to Microsoft but here are the steps to reproduce a GPF in the class browser in either VFP 6 or VFP 7.
1) Subclass a textbox give it any name you want.
2) Subclass a grid and give it a columncount of 1.
3) Subclass a form and drop the grid onto the form.
4) Change the columncount of the grid on the form to 2.
5) Add the custom text box to the 2nd column of the grid on the form.
6) Delete the original text1 textbox control in column2
7) Save the class
8) Use Createobject() to create an instance of the new form
9) Close the new form
10) Try to open the new form in the class browser again and it will GPF
If you define the grid completly before dropping on the form you will not get a GPF. The GPF develops when you add columns and controls in the form instance. It appears VFP is not cleaning up properly in this case.
I am now researching a problem with the pageframe control that randomly causes Labels, shapes and command buttons to be invisible when a form is displayed and think it might be related to the same problem of adding pages in the form instance. I know this is not related to the pagecount=0 bug listed in the knowledgebase.
Simon White
Simon White
dCipher Computing