示例#1
0
        public static void Main(string[] args)
        {
            var ebytes = CLRProgram.CLRMain(
                m: null,
                e: null
                );

            try
            {
                SharedProgram.Invoke("hi").Wait();
                Console.WriteLine("all done");



                // https://sites.google.com/a/jsc-solutions.net/backlog/knowledge-base/2015/201503/20150323
            }
            catch (Exception ex)
            {
                Console.WriteLine(new { ex.Message, ex.StackTrace });
            }
            //Thread.Sleep(10000);

            Console.ReadLine();
        }
示例#2
0
        public static ShadowIAsyncStateMachine CLRInvoke(ShadowIAsyncStateMachine e)
        {
            // 23e8:02:01 RewriteToAssembly error: System.IO.FileLoadException: Could not load file or assembly 'JVMCLRSwitchToCLRContextAsync.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)

            return(CLRProgram.CLRInvoke(e));
        }