Text

Answered

Package is not closing.

Dear Team,

In continuation of the following topic : 

https://developer-support.myscript.com/support/discussions/topics/16000026598

When we restart the application without removing from memory, we get following  exception :

java.lang.IllegalArgumentException: package is already opened.

This is causing failure in initialization of ContentPackage object and causing exceptions.

We have already applied your changes mentioned in above link but application restart case is still failing.

Please suggest us something so that package can be closed properly.

Please let us know if you want some more information from our end.


Regards,

Pankaj Tyagi


Best Answer

Dear Pankaj,


currently, before closing a contentPackage, you shall ensure the editor is in idle state. For this, please call the editor.waitForIdle() function.


When the editor is in idle state, contentPackage shall close properly.


Best regards,


Olivier


Answer

Dear Pankaj,


currently, before closing a contentPackage, you shall ensure the editor is in idle state. For this, please call the editor.waitForIdle() function.


When the editor is in idle state, contentPackage shall close properly.


Best regards,


Olivier

Dear Olivier,

Thanks for the solution. It worked for us.


Regards,

Pankaj Tyagi