Skip to content

CLR绑定:函数参数有多维数组报错修改#730

Open
chenxihan wants to merge 6 commits into
Ourpalm:masterfrom
chenxihan:master
Open

CLR绑定:函数参数有多维数组报错修改#730
chenxihan wants to merge 6 commits into
Ourpalm:masterfrom
chenxihan:master

Conversation

@chenxihan

Copy link
Copy Markdown

CLR绑定:函数参数有多维数组报错修改
NullReferenceException: Object reference not set to an instance of an object ILRuntime.CLR.TypeSystem.ILType.CheckGenericParams (ILRuntime.CLR.Method.ILMethod i, System.Collections.Generic.List`1[T] param, ILRuntime.CLR.TypeSystem.IType[] genericArguments, System.Boolean& match) (at Library/PackageCache/com.ourpalm.ilruntime@2.0.2/CLR/TypeSystem/ILType.cs:929)

CLR绑定:函数参数有多维数组报错修改
NullReferenceException: Object reference not set to an instance of an object
ILRuntime.CLR.TypeSystem.ILType.CheckGenericParams (ILRuntime.CLR.Method.ILMethod i, System.Collections.Generic.List`1[T] param, ILRuntime.CLR.TypeSystem.IType[] genericArguments, System.Boolean& match) (at Library/PackageCache/com.ourpalm.ilruntime@2.0.2/CLR/TypeSystem/ILType.cs:929)
@chenxihan chenxihan changed the title Update Extensions.cs CLR绑定:函数参数有多维数组报错修改 Sep 28, 2022
Comment thread ILRuntime/CLR/Utils/Extensions.cs Outdated
{
name = t.FullName + "[]";
}
else if (name == gp.Name + "[0...,0...]")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该修改会导致函数调用时产生额外的不必要GC Alloc,需要换个方式来识别,这个方法是高频执行方法,需要对这个主意

@chenxihan

Copy link
Copy Markdown
Author

CLR绑定:函数参数有多维数组报错修改

@chenxihan chenxihan closed this Oct 8, 2022
@chenxihan chenxihan reopened this Oct 8, 2022
@chenxihan

Copy link
Copy Markdown
Author

CLR绑定:函数参数有多维数组报错修改

@chenxihan chenxihan requested a review from liiir1985 May 20, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants