Pre loader

How do I catch error for invalid licence key?



I am trying to implement an improvement for my app where the chart is hidden if the licence key is invalid. But I can’t find how to do that. If I enter an invalid key like shown in examples, the code never ends up in the catch clause. Is there any other way? Or is this a bug?

try {
} catch (Exception e) {
    Elog.e("SciChart Error when setting the license", e);
  • You must to post comments

Hi Evado

No sorry, there isn’t a way to catch an invalid license key.

Since the key doesn’t change, just set it once and see if the chart shows a license warning or not. After that you won’t need to change it unless you renew or upgrade scichart.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies