I have a certain application which feeds information into an object, after comparing the new information to the old information. It goes something like
set
{
oldval=_value;
_value=value;
if (some comparison logic)
raiseEvent();
}
This all happens on a background thread, in an infinite loop, which intermittently sleeps for 100ms. The really odd part is that it works the first time, the comparison logic turns up true, and the event is raised. After that, the information keeps flowing, it keep entering the object, I know this because I set MessageBoxes to display the old and new values all the time, but its as if it somehow bypasses the set clause! I set a messagebox in the beginning of the clause, an it just doesn't pop up! This is really wierd, since I am sure that the value keeps updating.
Any Thoughts?