What steps will reproduce the problem?
1. I have set parameter like
class Class1
{
[CommandLine("j", "user@host Jabber ID", true)]
public string jid = "sanjayInfobeans@vaibhavt-pc";
[CommandLine("p", "Password", false)]
public string pass = null ;// "12345";
[CommandLine("n", "Network Host", false)]
public string networkHost = null;// "vaibhavt-pc";
[CommandLine("o", "Port", false)]
public int port = 5222;
[CommandLine("t", "TLS auto-start", false)]
public bool TLS = true;
[CommandLine("r", "Register user", false)]
public bool register = true;
[CommandLine("c", "Certificate file", false)]
public string certificateFile = null; //"";
[CommandLine("w", "Certificate password", false)]
public string certificatePass = null; // "";
[CommandLine("u", "Untrusted certificates OK", false)]
public bool untrustedOK = false;
[CommandLine("i", "Do not send initial presence", false)]
public bool initialPresence = true;
[CommandLine("b", "HTTP Binding (BOSH) URL", false)]
public string boshURL = null; // "";
2. ON running the code I am facing following exception
A first chance exception of type 'System.AccessViolationException' occurred in
jabber-net.dll
Additional information: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt.
At this location
private MemberInfo[] GetCommandLineMembers()
{
Type t = m_obj.GetType();
MemberInfo[] mis = t.FindMembers(MemberTypes.All,
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance,
new MemberFilter(AttrMemberFilter),
typeof(CommandLineAttribute));
Debug.Assert(mis.Length > 0, "Must have at least one CommandLine attribute on class: " + t.FullName);
return mis;
}
in GetOPtBase.cs
Original issue reported on code.google.com by vaibhav....@infobeans.com on 11 Sep 2014 at 9:47
Original issue reported on code.google.com by
vaibhav....@infobeans.com
on 11 Sep 2014 at 9:47