Note that there are some explanatory texts on larger screens.

plurals
  1. POThread was being aborted on a delegate
    text
    copied!<p>I am getting this type of error on the below function:I have also handled it with ThreadException but still getting such an error:</p> <pre><code>private void tmrOneSec_Tick(object sender, EventArgs e) { tsSpendTime = tsSpendTime.Add(new TimeSpan(0, 0, 1)); tsRemTime = tsTotalTime.Subtract(tsSpendTime); if (tsRemTime.Ticks &gt; 0) clsCommonFunc.MultiThreadSetText(txtTimeRem, clsCommonFunc.GetFormattedTime(tsRemTime)); } public static void MultiThreadSetText(TextBox TxtBox, string Text) { if (TxtBox.InvokeRequired) { TxtBox.Invoke((MethodInvoker)delegate { MultiThreadSetText(TxtBox, Text); }); } else { TxtBox.Text = Text; TxtBox.Refresh(); } } </code></pre> <p>And the error is this:</p> <pre><code>Source :: mscorlib Error :: 6/5/2012 8:51:28 AM Error Description : Thread was being aborted. Stack Trace: at System.Threading.WaitHandle.WaitOneNative(SafeWaitHandle waitHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext) at System.Threading.WaitHandle.WaitOne(Int64 timeout, Boolean exitContext) at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext) at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle) at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Delegate method) at SE5.clsCommonFunc.MultiThreadSetText(TextBox TxtBox, String Text) </code></pre> <p>I am not able to recognize the exact problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload