Need some help with marshal
im using GetFunctionPointerForDelegate with CreateDelegate , so i can get a pointer to the method in my project, it worked for one thing, but for another thing rn it doesnt work and it outputs an error, ArgumentException
The d parameter is a generic type definition.
im not really sure what that means, any help?
4 Replies
Would you please give a snippet of code with this problem?
here
where createdelegate is
^
this seems to happen with any function that has more than 0 arguments
trought debuggin i can see the function is made properly
![](https://utfs.io/f/c448c560-09b6-4325-88c9-aab1c04802a3-1nq2cb.png)
so its the GetFunctionPointerForDelegate throwing an error
oh ,i think i know what happens
it probably means that the type of the delegate needs to be not a generic
why so?
thats quite a strange restriction
Thx for help I guess