Skip to content

Instantly share code, notes, and snippets.

[0x7f5ebed28700:] EXCEPTION handling: System.NullReferenceException: Object reference not set to an instance of an object
"Threapool worker" tid=0x0x7f5ebed28700 this=0x0x7f5ec40dc000 thread handle 0x40f state : not waiting owns ()
at Mono.CSharp.MetadataImporter.ImportType (System.Type,Mono.CSharp.MetadataImporter/DynamicTypeReader) <0x00017>
at Mono.CSharp.MetadataImporter.ImportType (System.Type) [0x00000] in /home/src/build/mono/mono/mcs/mcs/import.cs:1052
at Microsoft.CSharp.RuntimeBinder.DynamicContext.ImportType (System.Type) [0x00010] in /home/src/build/mono/mono/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinder.cs:281
at Microsoft.CSharp.RuntimeBinder.CSharpBinder.Bind (Microsoft.CSharp.RuntimeBinder.DynamicContext,System.Type) [0x00000] in /home/src/build/mono/mono/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinder.cs:72
at Microsoft.CSharp.RuntimeBinder.CSharpConvertBinder.FallbackConvert (System.Dynamic.DynamicMetaObject,System.Dynamic.DynamicMe
System.InvalidCastException]: Cannot cast from source type to destination type.
at (wrapper managed-to-native) System.Array.SetValueImpl (System.Array,object,int) <IL 0x00015, 0x00061>
at System.Array.SetValue (object,int) [0x00046] in /home/src/build/mono/mono/mcs/class/corlib/System/Array.cs:621
at System.Reflection.Binder/Default.AdjustArguments (System.Reflection.MethodBase,object[]&) [0x0006a] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:199
at System.Reflection.Binder/Default.BindToMethod (System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[],object&) [0x00083] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:175
at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) [0x00043] in /home/src/build/mono/mono/mcs/class/corlib/System/Activator.cs:260
at System
"Threapool worker" tid=0x0x7fc4ed204700 this=0x0x7fc4ee014000 thread handle 0x40f state : not waiting owns ()
at (wrapper managed-to-native) System.Array.SetValueImpl (System.Array,object,int) <IL 0x0001b, 0xffffffff>
at System.Array.SetValue (object,int) [0x00046] in /home/src/build/mono/mono/mcs/class/corlib/System/Array.cs:621
at System.Reflection.Binder/Default.AdjustArguments (System.Reflection.MethodBase,object[]&) [0x0006a] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:199
at System.Reflection.Binder/Default.BindToMethod (System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[],object&) [0x00083] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:175
at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) [0x00043] in /home/src/build/mono/mono/mcs/cla
[0x7f4caae3c700:] EXCEPTION handling: System.InvalidCastException: Cannot cast from source type to destination type.
"Threapool worker" tid=0x0x7f4caae3c700 this=0x0x7f4cabc4c000 thread handle 0x40f state : not waiting owns ()
at (wrapper managed-to-native) System.Array.SetValueImpl (System.Array,object,int) <IL 0x0001b, 0xffffffff>
at System.Array.SetValue (object,int) [0x00046] in /home/src/build/mono/mono/mcs/class/corlib/System/Array.cs:621
at System.Reflection.Binder/Default.AdjustArguments (System.Reflection.MethodBase,object[]&) [0x0006a] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:199
at System.Reflection.Binder/Default.BindToMethod (System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[],object&) [0x00083] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:175
at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,Syste
------ Rebuild All started: Project: ImplicitCore_Library, Configuration: Debug Any CPU ------
Build started 2011-02-02 14:16:07.
CoreClean:
Deleting file "c:\users\grendel\documents\visual studio 2010\Projects\ImplicitCore_Library\bin\Debug\ImplicitCore_Library.dll".
Deleting file "c:\users\grendel\documents\visual studio 2010\Projects\ImplicitCore_Library\bin\Debug\ImplicitCore_Library.pdb".
Deleting file "c:\users\grendel\documents\visual studio 2010\Projects\ImplicitCore_Library\obj\Debug\ImplicitCore_Library.dll".
Deleting file "c:\users\grendel\documents\visual studio 2010\Projects\ImplicitCore_Library\obj\Debug\ImplicitCore_Library.pdb".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7A77E6C3-14F3-4BE9-8D44-E1001BAB2433}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
diff --git a/mcs/class/corlib/System.Reflection/Binder.cs b/mcs/class/corlib/System.Reflection/Binder.cs
index 615db74..819a9fd 100644
--- a/mcs/class/corlib/System.Reflection/Binder.cs
+++ b/mcs/class/corlib/System.Reflection/Binder.cs
@@ -193,10 +193,16 @@ namespace System.Reflection
Array.Copy (args, adjusted, parameters.Length - 1);
var param_args_count = args.Length + 1 - parameters.Length;
- var params_args = Array.CreateInstance (last_parameter.ParameterType.GetElementType (), param_args_count);
+ Array params_args;
System.Reflection.Binder+Default.BindToMethod (Instance, Public, System.Reflection.ConstructorInfo[], System.Object[], , , )
matches:
Void .ctor() (declaring type: ClaySharp.Clay)
Void .ctor(IClayBehavior[]) (declaring type: ClaySharp.Clay)
Void .ctor(IEnumerable`1) (declaring type: ClaySharp.Clay)
args:
ClaySharp.IClayBehavior[] (ClaySharp.IClayBehavior[])
selected == Void .ctor(IClayBehavior[])
System.Reflection.BInder+Default.AdjustArguments (Void .ctor(IClayBehavior[]), System.Object[])
last_parameter == IClayBehavior[] behaviors
[0x7f18758aa700:] EXCEPTION handling: System.NullReferenceException: Object reference not set to an instance of an object
"Threapool worker" tid=0x0x7f18758aa700 this=0x0x7f1876451690 thread handle 0x40f state : not waiting owns ()
at Mono.CSharp.MetadataImporter.CreateType (System.Type,Mono.CSharp.TypeSpec,Mono.CSharp.MetadataImporter/DynamicTypeReader,bool) [0x001f6] in /home/src/build/mono/mono/mcs/mcs/import.cs:708
at Mono.CSharp.MetadataImporter.CreateType (System.Type,Mono.CSharp.MetadataImporter/DynamicTypeReader,bool) [0x00036] in /home/src/build/mono/mono/mcs/mcs/import.cs:632
at Mono.CSharp.MetadataImporter.ImportType (System.Type,Mono.CSharp.MetadataImporter/DynamicTypeReader) [0x0007c] in /home/src/build/mono/mono/mcs/mcs/import.cs:1072
at Mono.CSharp.MetadataImporter.CreateParameters (Mono.CSharp.TypeSpec,System.Reflection.ParameterInfo[],System.Reflection.MethodBase) [0x0011e] in /home/src/build/mono/mono/mcs/mcs/import.cs:452
at Mono.CSharp.MetadataImporter.CreateMethod (System.Refle
var dt = customFilters.GetDataTable();
var codeAssemblies = Utils.CodeAssemblies();
foreach (var type in
codeAssemblies.Cast<Assembly>().Select(a => a.GetTypes()).SelectMany(
types => (from type in types
where type.GetInterface("BlogEngine.Core.ICustomFilter") != null
let found = dt.Rows.Cast<DataRow>().Any(row => row[0].ToString() == type.Name)
where !found
select type)))