>>>>I have a lot of gpf each day.
>>>>I posted a demo of VFP 7 C5 errors at
>>>>
>>>>
www.eetasoft.ee/c5demo.zip>>>
>>>The archive seems to be irregular - Winzip complains and won't open it. Would you check it, please?
>>
>>Can you check the size - 1339277 bytes.
>
>OK now, got only 67K first time.
>
>It seemed to have rebuilt and refreshed the grid about a dozen times before giving the C0000005. The entry in the HOME()+'vfp7err.log' it mentions does not get written.
>
>>Is there a way to remove all grid columns in some other way ?
>
>Did you keep the grid's recordsource while manipulating the column? Maybe it's a little more bound to the data now; if you unbind it, would it work?
No. I tried to set recordsource to empty grid as the code below, but
C5 error occurs always.
I have found that C5 error occurs only if grid contains a combobox.
If grid contains only textboxes, no error will occur.
this.MousePointer = 11
_screen.mousepointer = 11
this.cmdFormSwitch1.setfocus()
crrecords = this.gridbase1.recordsource
this.gridbase1.columncount = 0
this.cmdFormSwitch1.FindNextLayout(thisform.brtabel)
this.gridbase1.recordsource = crrecords
this.gridbase1.recordsource = ''
this.gridbase1.Init()
this.gridbase1.setfocus()
this.mousepointer = 0
_screen.mousepointer = 0
Andrus