what might cause: "Thread was being aborted" exception

A

active

When I run an app outside of the IDE I get the exception

Thread was being aborted

Does that error mean something to you?
Any idea what might be causing it?

++++++++++++++++


The messagebox contained:

To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>


I found the machine file and the system.windows.forms section but don't know
how to set the bit
<section name="system.windows.forms"
type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

I'd rather to generate a .config file for this app but have no idea how to.
I generated one with the name <my app>.config and inserted
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

but it seemed to have no effect

Any help would be appreciated
 
A

active

I found a site that said: Terminating a thread by calling Abort() is not
recommended
So I gave the class a method that tells it to abort itself
That seems to have fixed the problem.

I'd still appreciate knowing how to make a config file
The doc said to name it <name of app>.config
But as I checked my disk I found many App.config files
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top