﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-mooninwell-最新评论</title><link>http://www.blogjava.net/mooninwell/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sun, 26 Mar 2006 04:04:00 GMT</pubDate><lastBuildDate>Sun, 26 Mar 2006 04:04:00 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/28/37277.html#37710</link><dc:creator>非鱼</dc:creator><author>非鱼</author><pubDate>Mon, 27 Mar 2006 16:01:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/28/37277.html#37710</guid><description><![CDATA[@mooninwell<br><br>OIS没有实现reset()方法，是因为它从INPUT流中读取TC_RESET标志来RESET HANDLE TABLE。这样可以保证通过网络SERIALIZATION时不出问题。<img src ="http://www.blogjava.net/mooninwell/aggbug/37710.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">非鱼</a> 2006-03-28 00:01 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/28/37277.html#37710#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37549</link><dc:creator>nkoffee</dc:creator><author>nkoffee</author><pubDate>Mon, 27 Mar 2006 02:07:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37549</guid><description><![CDATA[同意楼上的<img src ="http://www.blogjava.net/mooninwell/aggbug/37549.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">nkoffee</a> 2006-03-27 10:07 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37549#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37542</link><dc:creator>hubeicaolei</dc:creator><author>hubeicaolei</author><pubDate>Mon, 27 Mar 2006 01:49:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37542</guid><description><![CDATA[用InputStream代替File作为参数岂不更好?<img src ="http://www.blogjava.net/mooninwell/aggbug/37542.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">hubeicaolei</a> 2006-03-27 09:49 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/27/37277.html#37542#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/26/37277.html#37421</link><dc:creator>mooninwell</dc:creator><author>mooninwell</author><pubDate>Sat, 25 Mar 2006 16:45:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/26/37277.html#37421</guid><description><![CDATA[@非鱼<br>以前工作很少用到IO，特别是序列化部分！今天在你的提醒下，看了一下oos的实现，发现一直使用一个oos/ois的确存在ML的可能性，但我认为这中使用情况在实际应用中很少发生。另：发现OOS的close方法内也包含了reset方法的实现，但ois没有实现reset方法，会抛异常。<img src ="http://www.blogjava.net/mooninwell/aggbug/37421.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">mooninwell</a> 2006-03-26 00:45 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/26/37277.html#37421#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37406</link><dc:creator>非鱼</dc:creator><author>非鱼</author><pubDate>Sat, 25 Mar 2006 13:44:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37406</guid><description><![CDATA[@mooninwell<br><br>因OIS/OOS使用HANDLETABLE保存被序列化对象的引用，实践中应注意调用OOS.reset()方法，否则在大量对象序列化时会发生ML。<img src ="http://www.blogjava.net/mooninwell/aggbug/37406.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">非鱼</a> 2006-03-25 21:44 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37406#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37395</link><dc:creator>mooninwell</dc:creator><author>mooninwell</author><pubDate>Sat, 25 Mar 2006 12:40:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37395</guid><description><![CDATA[资源和io流是一一对应的，而且良好的编程习惯应该是对独占资源应该尽快的释放，因此处理逻辑应该和从资源中获取信息相分离@非鱼<br><img src ="http://www.blogjava.net/mooninwell/aggbug/37395.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">mooninwell</a> 2006-03-25 20:40 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37395#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37394</link><dc:creator>mooninwell</dc:creator><author>mooninwell</author><pubDate>Sat, 25 Mar 2006 12:37:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37394</guid><description><![CDATA[只要文件存在并且读的权限就可以成功创建fis，但将fis转换为ois则文件必需满足序列化的文件格式。至于ois的关闭，从理论上关闭了基本流fis就不会存在泄漏，而且在实际测试中，window、solaris、aix系统下都没有问题@阿伟的技术小巢<br><img src ="http://www.blogjava.net/mooninwell/aggbug/37394.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">mooninwell</a> 2006-03-25 20:37 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37394#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37325</link><dc:creator>非鱼</dc:creator><author>非鱼</author><pubDate>Sat, 25 Mar 2006 04:03:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37325</guid><description><![CDATA[频繁调用这个方法OPEN/CLOSE STREAM也不是一个好的做法吧？如果一直使用一个ObjectInputStream/ObjectOutputStream就要小心内存泄漏。<img src ="http://www.blogjava.net/mooninwell/aggbug/37325.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">非鱼</a> 2006-03-25 12:03 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37325#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37305</link><dc:creator>flyfoxs</dc:creator><author>flyfoxs</author><pubDate>Sat, 25 Mar 2006 02:30:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37305</guid><description><![CDATA[收到,谢谢分享<img src ="http://www.blogjava.net/mooninwell/aggbug/37305.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">flyfoxs</a> 2006-03-25 10:30 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37305#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 经典的IO代码为什么有资源泄漏？</title><link>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37302</link><dc:creator>阿伟的技术小巢</dc:creator><author>阿伟的技术小巢</author><pubDate>Sat, 25 Mar 2006 01:14:00 GMT</pubDate><guid>http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37302</guid><description><![CDATA[有一点疑问：<br>  在文件存在的情况下，在什么情况下会出现fis创建成功而ois创建失败？<br>  另：finally下还是要加上关闭ois的为好。<img src ="http://www.blogjava.net/mooninwell/aggbug/37302.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mooninwell/" target="_blank">阿伟的技术小巢</a> 2006-03-25 09:14 <a href="http://www.blogjava.net/mooninwell/archive/2006/03/25/37277.html#37302#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>