Resolve "fix(viz): Closing Tuto01DataServiceBasicCpp causes assertion failure"
Description
There were two problems causing a crash when exiting Tuto01DataServiceBasicCpp (Windows/Linux) and Tuto02DataServiceBasic (Windows only).
- For Tuto01DataServiceBasicCpp, the ordering of plugins unloading was wrong, causing Ogre to exit before all GPU resources are freed.
- For Tuto01DataServiceBasicCpp and Tuto02DataServiceBasic, we fill one pixel too many in the transfer function, which caused an out-of-bounds exception when deleting it (only under windows, because of the CRT checks). This has been fixed.
Closes #914 (closed)
How to test it?
Test 1
- Run Tuto01DataServiceBasicCpp
- Wait until the negato appears
- Exit the application, it should not crash
Test 2
- Run Tuto02DataServiceBasic on Windows
- Wait until the negato appears
- Exit the application, it should not crash