Results 1 to 2 of 2

Thread: Exception has been thrown by the target of an invocation.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003

    Exception has been thrown by the target of an invocation.

    my codes below thrown me "Exception has been thrown by the target of an invocation."

    herewith stacktrace in detail:

    {Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.}

    what does it mean? .. what should I do?

    please help..

    Thread threadMonitor4;
    threadMonitor4 = new Thread(new ThreadStart(this.RefreshMonitor4));
    public void RefreshMonitor4()
             string mmethod = this.Method4;
             if (mmethod != "")
                    MethodInfo methodInfo =  typeof(ClsCounter).GetMethod(mmethod);
                    int result = (int)methodInfo.Invoke(clsCounter, null);
                    this.Label4Status = result.ToString("###,###,##0");
           catch (Exception) {  }
           finally {  }
    Last edited by Winanjaya; Dec 23rd, 2010 at 10:57 AM.

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location Preferred Animal: Penguin Reason for errors: Line#38

    Re: Exception has been thrown by the target of an invocation.

    It means that the method you're invoking raised an exception. If you use the debugger to look at the details of the exception, the actual exception that was raised by the method will be in it's InnerException property.
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width