Screen Pollution

Sonny

Member
Licensed User
Longtime User
Greetings,

I'm writing a routine which does some minor animation by updating a label object's position - ie; "labelObj.Left = labelObj.Left + 1". I'm doing this repeatedly until I reach the end of the screen. The logic works properly. My only problem is that I occasionally get "Screen Pollution" - where the object will leave partial trails on the screen which don't appear to respond to normal cleanup cues - Object.RemoveView, etc.

Is there anyway I can clean this up without having to dump my entire activity and reloading? Or is there a way to "more properly" do this so that these artifacts won't appear at all?

Thanks, in advance.

>> Sonny <<
 

Sonny

Member
Licensed User
Longtime User
Found the problem.

It turns out that I was a sloppy with my timers. One of them was killing a dependency ahead of schedule and resulted in a "partial" rendering of the object in question, resulting in the displayed artifacts.

Thanks for your help.

>> Sonny <<
 
Upvote 0
Top