Saturday, December 6, 2008

OOPS & Decoupling

Initial comprehension about OOPS was that it is just another roundabout way to achieve things, rather than the usual way to code the logic.

With a better understanding (though I don't claim to be an expert now :), I feel that there could be no better way to achieve reusability in a more decoupled way. When applications are decoupled, they tend to stay for a longer period as the changing requirements could be catered.

Saturday, September 8, 2007

CrossThreadException

Cross thread exceptions occur when a UI control is accessed from a thread other than the one on which it is created.

This may be due to the fact that the worker thread which owns the control would be busy with UI activities such as painting that control, displaying text, etc. As a result, any statement which interfers with the UI needs to be marshalled using the method Control.Invoke().