Home > Uncategorized > Compact Framework checks InvokeRequired for get visible

Compact Framework checks InvokeRequired for get visible

February 5th, 2009 Leave a comment Go to comments

Im writing a piece of code in compact framework that is supposed to tear down memory intese controls when they arent visible and then reactivate them when they are visible.

Now I agree that checking visiblity in a worker thread isn’t pretty. but the fact thaty the throw NotSupportedExceptions for a get is quite interesting. A get-operation shouldn’t mutate the state of the object and thus be safe to check from a different thread, right?

Bookmark and Share
  1. No comments yet.
  1. No trackbacks yet.