Jump to content

Cannot open or close ducument after await.


Xinyu Liu

Recommended Posts

HI

I registed a tool addin in spotfire. But I found cannot open or close ducument after await.

protected override async void ExecuteCore(AnalysisApplication context)

{

context.Open("C:\desktop\ae.dxp", new DocumentOpenSettings());

await Task.Delay(100);

context.Close(); // throw exception

}

 

Does anyone has any ideas

 

Allen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...