I have code that generates threads in a loop. After about a thousand threads, I get an OutOfMemoryException
on the thread.Start()
call.
Apparently, there is no limit on the amount of threads in de C# app, and my application has only allocated ~87MB of memory (according to the Task Manager).
Why do I get that OutOfMemory
exception?