471,350 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Exception error

Hi, I'm getting folowing exception error while compiling the code in VS2005.

$exception {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.} System.Exception {System.Threading.ThreadAbortException}

How to overcome this error. Please send the ASAP

Thanks in Advance.
Jun 1 '07 #1
2 2179
4,871 Expert 4TB
Please post the line number ad relevant code. Thanks.
Jun 1 '07 #2
7,872 Expert 4TB
You could go into your project settings (compiler section i think) and make sure it's set to NOT optimize anything, and you may be able to get more information.

ThreadAbortException is thrown when you call Thread.Abort() (and possibly other situations but this is the one I am familiar with) so your threads should be catching that Exception and know that they need to exit.
Jun 1 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by tarmat | last post: by
1 post views Thread by Mech | last post: by
2 posts views Thread by Yuki | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.