n_thalpy   1년 전

에... 코딩에서 C# 4.0으로 dynamic을 썼더니 펑 하고 터졌습니다.

분명히 MSVS2013에서는 잘 굴러가는데 말입니다......


여담이지만 에러 구문이 상당히 기네요.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for AnonHostModuleHolder ---> System.Security.Cryptography.CryptographicException: Couldn't access random source. at System.Security.Cryptography.RNGCryptoServiceProvider.Check () [0x00000] in :0 at System.Security.Cryptography.RNGCryptoServiceProvider..ctor () [0x00000] in :0 at System.Guid.FastNewGuidArray () [0x00000] in :0 at System.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilder assb, System.String name, System.String fullyqname, Boolean emitSymbolInfo, Boolean transient) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name, System.String fileName, Boolean emitSymbolInfo, Boolean transient) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.GetManifestModule () [0x00000] in :0 at System.Reflection.Emit.DynamicMethod+AnonHostModuleHolder..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Reflection.Emit.DynamicMethod..ctor (System.String name, MethodAttributes attributes, CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Reflection.Module m, Boolean skipVisibility, Boolean anonHosted) [0x00000] in :0 at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Type returnType, System.Type[] parameterTypes, Boolean restrictedSkipVisibility) [0x00000] in :0 at System.Linq.Expressions.Compiler.LambdaCompiler..ctor (System.Linq.Expressions.Compiler.AnalyzedTree tree, System.Linq.Expressions.LambdaExpression lambda) [0x00000] in :0 at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x00000] in :0 at System.Linq.Expressions.Expression`1[System.Action`3[System.Runtime.CompilerServices.CallSite,System.Type,System.Object]].Compile () [0x00000] in :0 at System.Runtime.CompilerServices.CallSiteBinder.BindCore[Action`3] (System.Runtime.CompilerServices.CallSite`1 site, System.Object[] args) [0x00000] in :0 at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[Type,Object] (System.Runtime.CompilerServices.CallSite site, System.Type arg0, System.Object arg1) [0x00000] in :0 at AlgorithmTest.Program.Main (System.String[] args) [0x00000] in :0 

baekjoon   1년 전

채점이 Linux에서 진행되기 때문에, C#의 경우에 MSVS를 사용하지 않고 Mono를 사용하고 있습니다.

지금 사용한는 C# 4.0 컴파일러(dmcs)가 dynamic을 지원하지 않는거 같은데... 확인해보고 지원하는거면 확인해보겠습니다.


댓글을 작성하려면 로그인해야 합니다.