孟晖's profileKebePhotosBlogLists Tools Help

Blog


    23 February

    补丁VS错误

    最近了解到,Microsoft Visual Studio 2005发布了SP1(惭愧,最近才了解到)。我用它也用了半年了吧,里面的Bug是无比的多(亏我用的还是英文原版的),具体就不描述了。对此我颇有感慨,想到了以前做过的一道题目(补丁VS错误):

    错误就是人们所说的Bug。用户在使用软件时总是希望其错误越少越好,最好是没有错误的。但是推出一个没有错误的软件几乎是不可能的,所以很多软件公司都疯狂地发放补丁(有的补丁甚至是收费的)。T公司就是其中之一。上个月,T公司推出了一个新的字处理软件,随后发放了一批补丁。最近T公司发现其发放的补丁有致命的问题,那就是一个补丁在排除某些错误的同时,往往会加入另一些错误。……

    这是题目前的一段废话,再后面就是题目了。虽说是废话,但我现在竟然发觉这是一段很有现实意义的话,特别是这句“一个补丁在排除某些错误的同时,往往会加入另一些错误。”。现在再来看这段话,怎么觉得其中的T公司有点像M$?

    大家一定有过碰到程序崩溃的经历吧。比如,你正在看一个网站,然后突然,IE弹出一个框框,上面写着“0x???????? 指令引用的 0x???????? 内存。该内存不能为‘read’。”。这是最经典的ACCESS_VIOLATION错误,也就是内存访问违规。然后,有两种结局:一,错误报告;二,程序被关闭。

    我是一直禁用错误报告的,因为我觉得它太烦。刚开始时觉得错误报告蛮好玩,但是它一而再,再而三地骚扰我,我就把他XX了。

    然后,由于那些善良的报告了错误的用户,微软就发现了BUG,然后改正了它,然后就发布了补丁。Windows XP面市至今,发布的补丁数不胜数。就连现在,差不多每个月都有近10个漏洞被修复,其中不乏有许多危险的漏洞。补丁越积越多,微软又发布了一种叫做Service Pack的东西,也就是传说中的SP。比如,Windows XP有SP1和SP2;IE6有SP1和SP2;Visual Studio 6.0有SP1、SP2、SP3、SP4、SP5、SP6;Visual Studio 2005也发布了SP1。还有很多比如Office的SP,我不太清楚。Windows 98作为一款经典的操作系统,微软却从未发布过SP,是不是Win98太稳定了没有错误?显然不是这样的。应该是因为,Windows 98的错误多的无法用补丁解决问题,所以微软索性发布了一个新的版本,叫做Windows 98 第二版(Second Edition),也就是传说中的Windows 98 se。

    最后我要提醒一句,错误报告你可以关掉,但是自动更新务必要打开。

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://wmhkebe.spaces.live.com/blog/cns!1731BEF822516D78!127.trak
    Weblogs that reference this entry
    • None