.NET threading exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • osvier
    New Member
    • Jun 2010
    • 1

    #1

    .NET threading exception

    Does anybody know what this expetion means?

    The problem is that I cannot replicate the error on my dev machine.. but the client is still getting the error...

    I also tryed to set the JIT debugging, but didn't work.

    It is a .NET C# (windows forms) application. Framework 3.5 in Visual Studio 2008
    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Drawing.Graphics.get_Transform()
       at System.Drawing.Graphics.GetContextInfo()
       at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
       at System.Windows.Forms.Control.PaintBackColor(PaintEventArgs e, Rectangle rectangle, Color backColor)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
       at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    It happens whenever you call the Abort() method on a thread. The way .NET provides for you to "stop" threads is by generating the ThreadAbortExce ption

    Comment

    Working...