任何人都可以解释这一点吗?GZipStream.Close导致ObjectDisposedExeption:为什么?
2
A
回答
1
相关问题
- 1. 为什么Javascript导致FOUC
- 2. 为什么MPI_Barrier导致C++
- 3. 为什么android:dividerPadding导致android.view.InflateException
- 4. 为什么“导入javax.jdo。*”导致错误?
- 5. 什么导致java.lang.IncompatibleClassChangeError?
- 6. 什么导致ArrayIndexOutOfBoundsException?
- 7. 什么导致HttpHostConnectException?
- 8. git rebase - 导致冲突 - 为什么?
- 9. 为什么闰秒会导致问题?
- 10. 为什么parseFromString导致[object HTMLUnknownElement]?
- 11. 此程序为什么会导致InputMismatchException?
- 12. 这为什么会导致GHCI挂起?
- 13. 为什么NSMutableURLRequest实例导致崩溃?
- 14. FFTshift导致振荡 - 为什么? (numpy)
- 15. 为什么我的代码导致ArrayIndexOutOfBoundsException?
- 16. 此代码为什么会导致ArgumentOutOfRangeException?
- 17. 为什么本地的simpleDateFormat导致bug
- 18. 为什么EntityManagerFactoryImpl.createEntityManager()会导致NullPointerException?
- 19. 为什么Environment.Exit导致LINQPad终止
- 20. 什么会导致IE10中event.dataTransfer.files为空?
- 21. 为什么node js Active Directory导致etimedout?
- 22. setCentralWidget()导致QMainWindow崩溃。为什么?
- 23. 什么会导致DOMNode :: nodeValue为空?
- 24. GrayScale(ColorMatrix)会导致OutOfMemoryException。为什么?
- 25. 这为什么会导致Seg Fault?
- 26. 什么原因导致参数为空?
- 27. 为什么glColor3f导致内存泄漏
- 28. 为什么这是')'导致错误?
- 29. 为什么更换$$只会导致$
- 30. 后runnable()导致nullpointerexcepion为什么?
你可以使用'(使用GZipStream compStream = new GZipStream(outFile,CompressionMode.Compress)){//你的代码}'而不是使用compStream 。关闭这将处理您目前的开放流所需的任何处置。 – Prix 2011-06-15 07:04:14
@Prix:谢谢。我只是想明白为什么。 – richard 2011-06-15 07:16:16