Problem:
When exiting a delphi Application with TV initialized an exception is thrown error 216 (dereferencing a nil pointer)
To Recreate:
Open delphi tutorial A1
Add OpenDialog and rename to OD
Add button to main form
Add following code to button
OD.execute
Exit application