private void startup()
{
dolog();
if (DSplugin)
{
timer1 = new Thread(timer);
timer1.IsBackground = true;
timer1.Start();
return;
}
try
{
if (th != null)
th.Abort();
}
catch
{
}
th = new System.Threading.Thread(delegate() { StartCapture(); });
th.Name = "Video Thread";
th.Start();
}