func shouldn't be released here, but i did it by mistake. Error message says the opposite of what happens here. GC cannot free an object type of '_builtin_function_', it is kept alive by the application.
i looked around the code for an extra func->AddRef() for hours. Did i misinterpret this error message? or is this a bug?
The premature release of the function probably caused this problem. It's much the same as if you free memory too early. It can be difficult to predict the result after an error like that.
If you have any idea how I can catch an incorrect call to Release() from the application I'd gladly implement it. It would definitely be good if the library could identify these kind of problems without the need to do exhaustive manual investigations.