Break a infinite loop.
Removing the last project did set startupproject to zero and unloaded the project. Thus the check that the project for the current item and the startup project are both null and the same.
Please register or sign in to comment