Redian新闻
>
Big # of files output problem in C
avatar
Big # of files output problem in C# Programming - 葵花宝典
n*a
1
Let's say there are 10k files need to be output in one C program.
It seems that I can't do that, the program stops after output like 1k files.
If I run the program on different PCs, the stop points are different on each
PC.
Probably that's b/c of memory problem, but I'm not sure about it
and how to solve it.
Any suggestion?
avatar
c*e
2
did you close those which are finished?
there are upper limits on the number of filedescriptors that you can open.

【在 n********a 的大作中提到】
: Let's say there are 10k files need to be output in one C program.
: It seems that I can't do that, the program stops after output like 1k files.
: If I run the program on different PCs, the stop points are different on each
: PC.
: Probably that's b/c of memory problem, but I'm not sure about it
: and how to solve it.
: Any suggestion?

avatar
n*a
3
That's exactly what happened.
I always close files and free those dynamic arrays, but somehow forgot to
close
files in this code. And I never thought about it. :(
Thx lah

【在 c********e 的大作中提到】
: did you close those which are finished?
: there are upper limits on the number of filedescriptors that you can open.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。