Use of the .dispose() at closing.

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Posts: 49
Joined: Thu May 16, 2013 8:24 pm

Use of the .dispose() at closing.

Post by symbolick » Mon Aug 26, 2013 2:59 pm

I notice in your sample applications this is used when every lightning chart instance is closed. I am wondering what type of error this could create if not done.


User avatar
Posts: 1365
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: Use of the .dispose() at closing.

Post by ArctionPasi » Mon Aug 26, 2013 8:46 pm

It doesn't produce an error, but if you are creating new charts continuously, you may want to call Dispose() to free their memory explicitly. Otherwise LC memory is freed when the application is closed.
LightningChart Support Team, PT