Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
joshuacosta #1
Member since May 2021 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Crask in a call to onMessage code
Hello,

We have a problem, a crash, in our code when we receive an "OnMessage". This one:

System.IO.FileLoadException
   en Logon.xmpp.xmppClient_OnMessage(System.Object, Matrix.Xmpp.Client.MessageEventArgs)
   en System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)

Información de la excepción: System.Reflection.TargetInvocationException

Maybe it's a conflict with the .net platform?.

Thanks in advance
Joshua
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
TargetInvocationException often happens when you do UI updates from a different thread than the UI thread.
Most UI frameworks require you to invoke the event back to your UI thread.

Can this be your issue? MatriX events usually do not occur in your UI thread, and you need to invoke when the code in the event handler does any UI updates.

Alex
joshuacosta #3
Member since May 2021 · 3 posts
Group memberships: Members
Show profile · Link to this post
Better I explain our "landscape":

- First: we had built a software solution with Matrix.dll . Works well, perfect.

- Second: we have re-built this software solution in a new machine (the first one is broken). This new version is re-compile another time with some evolution changes than not affect to XMPP environment. And this version not works well and shows the problem that we report to you.

I don't know if you can help us.

Thanks,
Joshua
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
TargetInvocationException is what I mentioned.
There is also FileLoadException in your error. This could mean that you are missing a dependency in your deployment.
MatriX does not need any other libs than the .NET Framework.

You stacktrace is not complete.This is why I cannot help that much.

Alex
joshuacosta #5
Member since May 2021 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks.
Go back to my "scenary" to complete it.

Joshua
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: