I have an application that closes using "me.close()" during a timer tick event. (In a nutshell, the program is run every 5 minutes using windows task scheduler. It runs, collects data, writes to a SQL database, and then closes after 30 seconds using a timer tick event.)
What I have noticed is that about a third of the times, I get an ArgumentOutOfRangeException in EthernetIPforCLXcom.vb at m_synchronizingobject.begininvoke(SubscriptionList(i), z). (EthernetIPforCLXcom.vb , Line #816, advanced version 3.5.7)
All my data is written to the SQL database, so I'm thinking that the exception happens inside the internal workings of "me.close()" which is the last line in that subroutine. The exception doesn't cause me any major problems, other than an exception error, but I'm wondering if there is a better way to manually close down advancedhmi applications.
Example Screen Shot: