阅读背景:

尽管读取成功,但最终计数为0

来源:互联网 

I am writing an iOS app which uses a piece of c++ code which is reading pieces of data from a file using istream. The code works but its used repeatedly and it eventually hits a limit of reads and then something goes wrong. It appears to read in successfully but gcount returns 0. This is not specific to a certain file or case because after the app is restarted everything will pick up from where it left off and fail once the limit is hit again. It feels like there is some istream session that gets into a bad state that I can't get out of. I am closing the files I open.I am writing an iOS app which uses a piece of c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: