By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

what might cause: "Thread was being aborted" exception

P: n/a
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


Feb 21 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Feb 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.