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.