[Mono-bugs] [Bug 660015] Getting errors and crash while invoking Activator.CreateInstanceFrom()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 16 16:22:21 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=660015

https://bugzilla.novell.com/show_bug.cgi?id=660015#c1


--- Comment #1 from mike guman <mguman at knology.net> 2010-12-16 21:22:21 UTC ---
Created an attachment (id=405197)
 --> (http://bugzilla.novell.com/attachment.cgi?id=405197)
Text example code

test code:

using System;

using System.Reflection;
using System.Runtime.Remoting;
using System.IO;

namespace TestInstance
{
    class MainClass
    {

        public static void Main (string[] args)
        {

            ObjectHandle oh;

            int AA = 1;
            int BB= 1;
            int CC= 1;
            int DD= 1; 

            float[] a = new float[]{1.0F,2.0F,3.0F};
            float[] b= new float[]{1.0F,2.0F,3.0F};
            float[] c= new float[]{1.0F,2.0F,3.0F};
            float[] d= new float[]{1.0F,2.0F,3.0F}; 
            float[] e= new float[]{1.0F,2.0F,3.0F};
            float[] f= new float[]{1.0F,2.0F,3.0F};
            float[] g= new float[]{1.0F,2.0F,3.0F};
            float[] h= new float[]{1.0F,2.0F,3.0F}; 
            float[] i= new float[]{1.0F,2.0F,3.0F}; 
            float[] j= new float[]{1.0F,2.0F,3.0F}; 
            float[] k= new float[]{1.0F,2.0F,3.0F};
            float[] l= new float[]{1.0F,2.0F,3.0F}; 
            float[] m= new float[]{1.0F,2.0F,3.0F};
            float[] m= new float[]{1.0F,2.0F,3.0F}; 


            double EE = 1.0;    
            double FF = 1.0;


            Object[] myArgs = new Object[] {AA, a, b, c, d, e, f, g, BB, h, i,
j, k, l, m, n, CC, EE, DD, FF };


            try
            {

                oh = Activator.CreateInstanceFrom("myDll.dll",
"mycplusplusnamespace.mycplusplusclass",
                                                  false,
                                                  BindingFlags.Default,
                                                  null,
                                                  myArgs,
                                                  null,
                                                  null,
                                                  new
System.Security.Policy.Evidence());
            }
            catch (Exception exp)
            {
                Console.WriteLine(exp.ToString());
            }    
        }




    }//eoc
}//eon

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list