protected virtual void Dispose(bool disposing)
{
if (disposing)
{
// free managed resources
if (stopEvents != null)
{
for (int i = 0; i < stopEvents.Length; i++)
{
if (stopEvents[i] != null)
{
stopEvents[i].Close();
stopEvents[i] = null;
}
}
}
}
}
#endregion