Nathan Bedell11/14/2023, 7:22 PM
) pretty easily, but I'm having trouble running callbacks from C# for some reason. The exception I get (which I found by debugging seems to happen when my Kotlin function tries to call it's callback argument) is: "Access violation reading location 0xFFFFFFFFFFFFFFFF", which I think is a null-pointer, and yet what I pass to the function from C# definitely isn't null, and isn't getting GC'd, so I'm not sure what's going on. Does anyone here have any insights?
library currently a requirement in order to pass in a callback into a Kotlin native function or something?
from my multiplatform project. The documentation points me towards a command line tool to generate C bindings for use in Kotlin, but I just want to allow C libraries to be able to pass callbacks into my Kotlin functions.
edrd11/16/2023, 10:16 PM
Nathan Bedell11/16/2023, 10:21 PM
edrd11/16/2023, 10:26 PM
Nathan Bedell11/16/2023, 11:49 PM
edrd11/20/2023, 3:17 PM
Nathan Bedell11/21/2023, 1:30 PM
edrd11/21/2023, 3:02 PM