//request response async var asyncResult = request.BeginGetResponse(callback, null); //出错位置 if (asyncResult.CompletedSynchronously) return response;
线程被你用完了,如果你是大量的启动新线程,那就不应该用ThreadPool,你应该使用 new Thread
运行c#项目时,出现如题的错误“ThreadPool 中没有足够的自由线程来完成该操作。“,有哪位大神知道如何解决么?不尽感激! 出错代码 //request response async var asyncResult = request.BeginGetResponse(callback, null); //出错位置 if (asyncResult.CompletedSynchronously) return response;
110,538
社区成员
642,577
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧