Z
Zürcher See
I have in a form a datagrid that display a dataset, but if I start a new
thread that fill the dataset the program will crash, that's because the
dataset is not synchronized, is not thread safe.
I tryed to use the monitor.enter(dataset) and monitor.exit(dataset) befor
updating the dataset but was useless.
I think the problem is the paint method of the datagrid, that you can not
override, so you can not synchronize the dataset.
Also there is only one paint event, you need at least two, one befor and one
after painting.
Someone has a suggestion?
thread that fill the dataset the program will crash, that's because the
dataset is not synchronized, is not thread safe.
I tryed to use the monitor.enter(dataset) and monitor.exit(dataset) befor
updating the dataset but was useless.
I think the problem is the paint method of the datagrid, that you can not
override, so you can not synchronize the dataset.
Also there is only one paint event, you need at least two, one befor and one
after painting.
Someone has a suggestion?