A
Alex
Hi,
We have the following situation: The application has many forms and
one dataset which is shared by all forms. When forms are initialized,
the form controls bind to the dataset.
At some point, we need to do a dataset.Clear() - and exceptions are
thrown.
(ObjectDisposedException for "ComboBox" and IndexOutOfRange exception
<- for every row in the dataset's tables)
I believe that this is because the controls bind to the dataset, then
the forms close (and thus controls are disposed), but the dataset,
upon Clear tries to notify all subscribers.
Do you have any idea ?
Any help will be appretiated!
Thanks, Alex
We have the following situation: The application has many forms and
one dataset which is shared by all forms. When forms are initialized,
the form controls bind to the dataset.
At some point, we need to do a dataset.Clear() - and exceptions are
thrown.
(ObjectDisposedException for "ComboBox" and IndexOutOfRange exception
<- for every row in the dataset's tables)
I believe that this is because the controls bind to the dataset, then
the forms close (and thus controls are disposed), but the dataset,
upon Clear tries to notify all subscribers.
Do you have any idea ?
Any help will be appretiated!
Thanks, Alex