'Class_Terminate' event is no longer supported
'Class_Terminate' event is no longer supported. Use 'Sub Finalize' to free resources.
Class_Terminate event of previous versions of Visual Basic is replaced by class destructors.
By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.
Error ID: BC42002
To correct this error
- Declare a
Finalizeto terminate a class.
Sub Finalizeis called when the garbage collector detects that there are no more active references to the instance.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.