Plugin consume 100% CPU utilization

We have created a Background plugin that reads the additional attribute that we store the metadata object xml (please refer to attached image “metadata info.jpg”) in order to draw a line to represent the object trajectory.

We are attaching the code sample that we have created for your reference.

Currently, we are facing the following challenges

1> The CPU usage increases, and the application throws an exception and closes (please refer to the attached images “CPU.jpg” and “Error,jpg”

2>The smart client slows and finally stops responding.

We don’t have the ressources to debug code. I quickly looked through the code, but could not identify the issue.

If you take the unmodified version of ActiveElementsOverlay, do you then see the issue? If you do, then its an issue with client machine. Either smart client configuration, driver or hardware.

If unmodified ActiveElementsOverlay works, then take you own code and limit the issue of by removing features. Start simple and ask it to draw one line and then expand until you find the feature which consumes the processor.