Click to See Complete Forum and Search --> : MSHFlexGrid Abend


Paul Kmecak
February 23rd, 2000, 09:02 AM
I have a form with an unbound MSHFlexGrid control used to select records for updating via text boxes. During Form_Activate and after each update, the grid is refreshed via the same subroutine.

The problem appears to occur after a new record is added on a second form and the application returns to the form with the grid control.

The error messages I have gotten are as follows:

Run-time error '-2147417848 (80010108)': Automation error (compiled version)

Run-time error '-2147417848 (80010108)': Method 'Clear' of object 'IMSHFlexGrid' failed (running from source)

Run-time error '-2147417848 (80010108)': Method 'Rows' of object 'IMSHFlexGrid' failed (running from source)

The code is as follows:

grdList.Clear
grdList.Rows = 0

According to MS support the error number translates to "The object invoked has disconnected from its clients", per winerror.h

The error, of course, occurs randomly. I have coded around it (?), but would like to know what went wrong. I am running VB6, SP 3 on Win95. Thanks for your help.