Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
dwandless #1
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Mono client
I'm trying to create a client on OS X using Mono.  I have Mono 2.10.7.  I downloaded the latest developer Mono Matrix.dll (actually the standard .NET Matrix.dll gives the same error).  When I attempt to run my application I get this error:

Unhandled Exception: System.InvalidProgramException: Invalid IL code in Matrix.Xmpp.Client.XmppClient:.ctor (): IL_0006: stfld     0x0400037f

  at TestMatrix.SyncViewerHost.JabberJoin () [0x00000] in <filename unknown>:0
  at TestMatrix.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in Matrix.Xmpp.Client.XmppClient:.ctor (): IL_0006: stfld     0x0400037f


  at TestMatrix.SyncViewerHost.JabberJoin () [0x00000] in <filename unknown>:0
  at TestMatrix.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

Is there something I'm missing?

Thanks,
Duane
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This exceptions have not much info. Do you have also a full stacktrace?
Are you using the correct binary?

The Windows version does not work because its calling some windows APIs during the connect and Mono also does not like the obfuscator we are using for the Windows build.

Alex
Avatar
dwandless #3
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
That is the full stacktrace that is reported.  I am using the Mono Matrix library from here: http://www.ag-software.net/download-directory/.  Matrix/Mono.
md5 Matrix.dll
MD5 (Matrix.dll) = 4d853cd9ceacdb8022afba245f2e17a3

I had problems with Mono and obfuscators before so I switched to http://www.deepseaobfuscator.com/ and obfuscation works great on Mono OS X and Windows.

I need to demo a working client on Windows and OS X to my boss before continuing the evaluation.  Is there anyway to get a dll that does not hit this Invalid IL issue?

Thanks,
Duane
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please contact me directly by email. I can send you a new build.

Alex
Avatar
graphicated #5
Member since Jun 2012 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: similar problem here
hello,

I´m using also this in unity3D.

I´m getting :

InvalidProgramException: Invalid IL code in Matrix.Xmpp.Client.XmppClient:.ctor (): IL_0006: stfld     0x040003b6


here is a mini class i used to test the connection, the Start() function will fire once when the game starts :

using UnityEngine;
using System.Collections;
using System.Threading;
using Matrix;
using Matrix.Xml;
using Matrix.Xmpp;
using Matrix.Xmpp.Client;
using Matrix.Xmpp.Register;
using Matrix.Xmpp.XData;
using System;

//using System.Runtime.InteropServices;
    class Xmpp2 : MonoBehaviour
    {
      XmppClient xmppClient;
       
    void Start()
    {       
        xmppClient =  new XmppClient ();
        xmppClient.SetUsername("anas");
        xmppClient.SetXmppDomain("localhost");
        xmppClient.Password = "123456";
        //xmppClient.OnError += new EventHandler<ExceptionEventArgs>(ONXmppOnError);
        xmppClient.Open();       
    }
       
     void ONXmppOnError(object sender,ExceptionEventArgs ex){
       
        Debug.Log(ex.ToString());
       
    }
}
Avatar
Alex #6
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
For Mono a special build is required which is not public. Please contact us directly by email for Mono builds.
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