We've run across a situation where users who open and close charts many times in our application experience thread leaks and out of memory exceptions in the charts that cause the charts to show up blank, or in worst cases even crash the program. I tried to simulate the problem in the LightningChart for WPF Demo Application (v.6.4) and indeed the problem shows there as well. Here are the steps to reproduce:
1. Build the WPF demo app
2. Start the executable.
3. Click on any of the Intensity Grid or Intensity Mesh examples
4. Click on a different Intensity Grid Intensity Mesh example
5. Repeat steps 3 & 4 and after 30-40 charts, eventually the charts go blank.
Can you offer any recommendations for how to avoid this problem?
Resource leak
Moderator: Queue Moderators
-
- Posts: 42
- Joined: Thu Mar 28, 2013 9:20 am
Re: Resource leak
Yes, there seems to be resource leak in chart. Thank you for informing us about it.
If possible, you could try to recycle charts instead of creating new ones until we have fixed the issue.
Sorry for inconvenience.
If possible, you could try to recycle charts instead of creating new ones until we have fixed the issue.
Sorry for inconvenience.
LightningChart Support Team, TK
Re: Resource leak
We have released version 6.4.6 assembly pack which has this problem fixed.
Re: Resource leak
I can confirm that this fix worked for us. Thank you!