{"id":4237,"date":"2014-03-30T09:25:06","date_gmt":"2014-03-30T09:25:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/can-a-suspended-thread-be-aborted-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:25:06","modified_gmt":"2014-03-30T09:25:06","slug":"can-a-suspended-thread-be-aborted-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/can-a-suspended-thread-be-aborted-collection-of-common-programming-errors\/","title":{"rendered":"Can a suspended thread be aborted?-Collection of common programming errors"},"content":{"rendered":"<p>I created a thread and that thread can be suspended. So, how do I kill or terminate a suspended thread?<\/p>\n<p>I tried to <code>ABORT<\/code> the thread and I got a runtime error message saying that the thread is suspended and it can&#8217;t be aborted. I&#8217;ve looked for <strong>terminate<\/strong> method or something similar and it doesn&#8217;t seem to exist.<\/p>\n<pre><code>myThread := new Thread(@BigLoop);\nmyThread.Start;\n\nmyThread.Suspend;\nmyThread.Abort;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I created a thread and that thread can be suspended. So, how do I kill or terminate a suspended thread? I tried to ABORT the thread and I got a runtime error message saying that the thread is suspended and it can&#8217;t be aborted. I&#8217;ve looked for terminate method or something similar and it doesn&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4237","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4237"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4237\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}