Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Resource should be disposed by the thread that creates it???

Several days ago, I asked one question in this maillist about magical dead of Color#dispose() & Image#dispose().

In platform gtk2.2.0 + swt3038 ( Redhat Linux 7.2), if one Color/Image is created in one Thread(Thread A), and it is disposed in another Thread(Thread B). It is quite possible that when this Color/Image is disposed. the dispose() call will end in dead.

Is it a rule that resource should be disposed by the thread that creates it?






Back to the top