-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsNumberMatch in a Parallel.ForEach loop generates System.NullReferenceException in RegexInterpreter.Go() #84
Comments
How big are your data sets? I been trying with 1000 contacts each with 10000 numbers (which takes a few minutes to run) and it's working just fine. Can you try using a ConcurrentBag instead? |
Perhaps you could see if you could reproduce the error using Regex directly since |
My datasets were even smaller than yours. 500 contacts, 100 numbers. |
This was on .Net Framework 4.5.1 |
Having run multiple tests I confirm the exception is only thrown on an iOS device Even the simulator works successfully although trying to run things in parallel on it doesn't seem to be quicker at all. I'm trying for figure out what the next steps are... |
Closing due to inactivity and various changes that likely effect behavior here, it is also known that dotnet regex performance is suboptimal on iOS. |
Hi,
I am having thread safety issues with IsNumberMatch.
At least on Xamarin.iOS - haven't test yet on plain .NET.
The following (excerpt) code (running on Xamarin.iOS) :
generates the following exception:
System.NullReferenceException: Object reference not set to an instance of an object
with the following stack trace:
Am I doing something wrong?
Same code in a classic
foreach
loop works flawlessly.Thanks
The text was updated successfully, but these errors were encountered: