Won't generate completed event (async shell)

I’ve been having trouble getting this project to generate shell completed events.
I’ve cut out a lot from this project and have it down to the basics to demonstrate the issue.
broken shell

I’ve had to put the project in drop box… I hope the link works…

I think you’re running into the “Inspector values override the values set in the constructor” issue. You’re really not running in Mode 1. Set the mode to one in the IDE and see if it makes a difference. Then make AShell1 a property of the window that you instantiate in Open, rather than placing it on the window. Both approaches should work.

What’s happening is the constructor sets the mode to 1, but then the Inspector values are applied, which sets it back to 0.