Treading fixed. Now its working with Invoke and BeginInvoke without any errors