In my main form, I create an object that uses file IO and retains an open handle. I then spawn a thread which creates another form, which needs to use this same object. The constructor of the second form accepts a reference to the first forms IO object. Should I check for RequireInvoke when calling methods of this IO object in the second form even though said object is not UI control related?
Share
If the object u r sharing between the 2 threads is not a ui control then you dont have to worry about a cross thread exception.
If you ask me the more pressing thing would be data validity when it is shared across threads.
Cross thread access exceptions are pretty straight forward to locate and resolve.