Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

PresentViewController Adding Threads until App Crash

When using:

which is in a UItabbarcontroller class, ViewControllerSelected function switch statement. The app adds threads every time this tab is selected and this code runs.

When clicked, but not every time, a new thread is started. When there are about 12 -14 threads my app crashes:

I'm very new to xamarin iOS development. How do I either, reduce the amount of threads being used so they do not stack up like this or avoid this multiple thread creation all together?

I've been looking around for a week now and cannot find any solutions to this problem, due to a specific functionality needed that cannot be done in the storyboard. All other storyboard tab bar items linked to uiviewcontrollers in the main.storyboard do not create threads and cause this problem.

Thanks in advanced.

Sign In or Register to comment.