首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > One Day Working for a Bug
【标  题】:One Day Working for a Bug
【关键字】:One,Day,Working,for,Bug
【来  源】:http://blog.csdn.net/godwater8/archive/2007/01/12/1481599.aspx

One Day Working for a Bug

This morning a bug was reported to me. I tried to find what cause it, and till this afternoon I found it.

The bug was caused by a static varient in a member function. It stay on FALSE from the last call. But I want it to be TRUE the latest calling.

The varient was declared like this:

static BOOL bNoClear = TRUE;

It looks like that it will be TRUE after running across this line if you are careless.  So I was confused by this.

 

 

WINX发布新版本,支持Visual C++ .NET 2003:【上一篇】
C/C++动态内存管理(2):【下一篇】
【相关文章】
  • DEBUG API写简单的Loader
  • Praise for Applying Domain-Driven Design and Patterns
  • Flash和Java结合开发的利器_《Java for Flash动态网站开发手札》_部分章节连载(1)
  • informix loader domain file no present
  • The first day 2007, ready to Vista, 30.
  • net时代winforms的地位特别尴尬,而且会一直尴尬下去? ---- 之我见
  • 工商银行网站的弱智bug
  • 提高你上网效率的最好工具AI Roboform
  • ELF Executable and Linkable Format
  • ADOdb for Python
  • 【随机文章】
  • SQL查询语言基本教程(3)
  • 使用DBMS_SUPPORT包(zt)
  • VPN over IPVS with direct routing method
  • 文件合并与分隔
  • 如何实现MySQL中的用户管理
  • VB中如何实现文本查找功能
  • web和ftp侍服器入侵步骤刚
  • 无组件文件上传代码实例
  • 在三维空间中创建光源
  • ip全功略之追踪ip
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.