View Single Post
  #3 (permalink)  
Old February 16th, 2015, 02:17 PM
mmorgan30 mmorgan30 is offline
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

it is probably because you are calling a method of a value type that is defined in a class that implements MarshalByRefObject. Without looking at the code I am assuming its a System.Windows.Forms.Form.

check out https://msdn.microsoft.com/en-us/library/x524dkh4.aspx for a work around.