Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
skhanna #1
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Subject: Exception has been thrown by the target of an invocation
Hi Alex,

I am executing custom delegate on message receive event. My code is

  1. void XmppClient_OnMessage(object sender, MessageEventArgs e) {
  2.       if (e.Message.Type == MessageType.Chat) {
  3.         _messageReceiverDeligate(sender, e);
  4.         }
  5.       }

Some time I am getting this error.

OnError: message:Exception has been thrown by the target of an invocation., stacktrace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Matrix.XmppStream.DoRaiseEvent(Delegate del, Object[] args)
   at Matrix.Xml.XmppStreamParser.DoRaiseOnStreamElement(XmppXElement el)
----------------------------------------

Thanks,
Sanjeev Khanna
This post was edited 2 times, last on 2016-08-26, 16:46 by Alex.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS