Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Unregistering an add-in with COM object, Excel crashes when closing #61

Closed
govert opened this issue Feb 26, 2016 · 3 comments
Closed

Comments

@govert
Copy link
Member

govert commented Feb 26, 2016

Due to DllCanUnload() attempting to reload the add-in during shutdown.
Reproduced in Samples\MasterSlave

@govert
Copy link
Member Author

govert commented Mar 11, 2016

Commit 0ea3ed6 is a partial fix for this - it stops the crash but won't allow the .xll to be unloaded completely (if COM features were used).

@terryaney
Copy link
Sponsor

What does

won't allow the .xll to be unloaded completely (if COM features were used)

mean exactly?

@govert
Copy link
Member Author

govert commented Aug 13, 2016

If your add-in has a ribbon or CTP, or uses the COM sever featur, or uses RTD or async functions, then the .xll file may be locked by the Excel process even after your add-in is unloaded. This means you can't delete the .xll file ntil Excel is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants