From fea37222752d20fa314c31ae4e654f18b25c59cc Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 9 Jul 2020 09:12:01 +0200 Subject: [PATCH] [monotouch-test] Use a normal thread instead of MulticastDelegate.BeginInvoke in AVAssetImageGeneratorTest. MulticastDelegate.BeginInvoke isn't supported in .NET. Ref: https://github.com/dotnet/runtime/issues/16312 --- .../AVFoundation/AVAssetImageGeneratorTest.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs b/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs index a7ecd3d9f1d7..5ed1a623edd2 100644 --- a/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs +++ b/tests/monotouch-test/AVFoundation/AVAssetImageGeneratorTest.cs @@ -113,8 +113,10 @@ public void GenerateCGImagesAsynchronously () mre.WaitOne (); } }; - var asyncResult = main.BeginInvoke (null, null); - main.EndInvoke (asyncResult); + var thread = new Thread (main) { + IsBackground = true, + }; + thread.Start (); Assert.True (mre.WaitOne (2000), "wait"); Assert.True (handled, "handled"); }