Sometimes a binder throwns an exception with no error message. You can retrieve the exception with the following snippet to find out whats wrong:. If you remove the check for the ModelsState. IsValid and let it error, if you copy this line System. EntityValidationErrors and paste it in the watch section in Visual Studio it will give you exactly what the error is.
Saves a lot of time checking where the error is. You can iterate through the keys on the dictionary and use the IsValidField method to check if that particular field is valid. As has just happened to me - this can also happen when you add a required property to your model without updating your form. So I thought, maybe it does not like me using the same model, so I tried like this:. And still the view renders with the original model. What's odd is, when I put a breakpoint in the view and examine the model, it has the changed value.
But the response stream has the old values. There is some false sharing in your code since x is not guaranteed to be aligned to a cache-line. Padding is not necessarily enough. In your example N is really small which may be a problem.
Note at your example N , the biggest overhead would probably be worksharing and thread management. If N is sufficiently large, i. Alternating writes to A2 from different threads in your code is also not optimal in terms of cache usage, but that is not a false sharing issue.
Note, you do not need to split the loops. Also post all the relevant bit of code as we cannot see the validation attributes.
Also is there any way you can tell us which select failed? The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums.
0コメント