dcsimg
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
    Posts
    757

    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..

    Code:
    ...
    ...
    Thread threadMonitor4;
    threadMonitor4 = new Thread(new ThreadStart(this.RefreshMonitor4));
    threadMonitor4.Start();
    
    ...
    ...
    
    public void RefreshMonitor4()
    {
       try
         {
             string mmethod = this.Method4;
             if (mmethod != "")
                 {
                    MethodInfo methodInfo =  typeof(ClsCounter).GetMethod(mmethod);
                    int result = (int)methodInfo.Invoke(clsCounter, null);
                    this.Label4Status = result.ToString("###,###,##0");
                    this.ShowLabel4();
                  }
           }
           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
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    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.
    Quotes:
    "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
  •  



Featured


Click Here to Expand Forum to Full Width