I have a problem with my app. Users take a lot of picture for a job about 3000 pictures and when the job is finished, they send all images to the server. I send all picture across WebAPI.
The app crashes after about 400 pictures and I can't understand why.
Basically I have a list with the picture to send and with a
foreach I call the function that sends an image. I tried to use
SemaphoreSlim but it doesn't useful for this case.