I have a problem with the END command in my project form when the form closes.
It throws an exception, the following is the exception text .
An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll
Additional information: Object reference not set to an instance of an object.
When I catch the exception and try to open a message box this is the exception text.
An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll
Additional information: LocalDataStoreSlot storage has been freed.
I would appreciate any help with this issue.