G
Guest
I have line of code that was originally written prior to .NET 2.0 as follows:
Foreach int i in Items.
The problem is it keeps throughing an exception about unsafe thread access.
I have read how to fix this using the check to InvokeRequired property but am
trying to figure how to apply it when using the foreach command since I have
to use a callback delegate to make a threadsafe access.
Foreach int i in Items.
The problem is it keeps throughing an exception about unsafe thread access.
I have read how to fix this using the check to InvokeRequired property but am
trying to figure how to apply it when using the foreach command since I have
to use a callback delegate to make a threadsafe access.