Nathan Bedell
11/14/2023, 7:22 PM@CName
) 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?cinterop
library currently a requirement in order to pass in a callback into a Kotlin native function or something?CPointer
and CFunction
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.edrd
11/16/2023, 10:16 PMNathan Bedell
11/16/2023, 10:21 PMedrd
11/16/2023, 10:26 PMNathan Bedell
11/16/2023, 11:49 PMedrd
11/20/2023, 3:17 PMNathan Bedell
11/21/2023, 1:30 PMedrd
11/21/2023, 3:02 PM