This is not very likely – but this will work in many cases. The root cause of this is due to a weakness when hosting .net 2.0 in an application like Scorpion Vision Software.
3. Hint – Exit Code Exception
If you receive unhandled exceptions on Scorpion exit add code to Central Stop to stop event solvers:
# manually call application domain shutdown
import clr
import System
tp = System.Type.GetType(‘Microsoft.Win32.SystemEvents, System, Version=2.0.0.0, Culture=neutral, PublicKyToken=b77a5c561934e089’)
mi = tp.GetMethod(‘Shutdown’, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static, None, [], [])
mi.Invoke(None, [])
Note: This is only needed if you use .Net in your Scorpion Vision System
Filed under: Profiles |