Object reference not set to an instance of an object
See original GitHub issueDescription
Running on M1 Mac with .NET6 (6.0.203) using self build libduckdb.dylib (arm64) from recent master. Samples project fails at line 43: PrintQueryResults(reader);
The actual error happens in DuckDBNativeObjects.cs line 93: var column = Marshal.PtrToStructure<DuckDBColumn>(columns + Marshal.SizeOf<DuckDBColumn>() * i); (a The error message is:
Exception has occurred: CLR/System.NullReferenceException An unhandled exception of type 'System.NullReferenceException' occurred in System.Private.CoreLib.dll: 'Object reference not set to an instance of an object.' at System.Runtime.CompilerServices.CastHelpers.Unbox(Void* toTypeHnd, Object obj) at System.Runtime.InteropServices.Marshal.PtrToStructure[T](IntPtr ptr)
Earlier actions (creating table, inserting data) seem to be successful when I check the file.db database using DuckDB CLI.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
This is now implemented in release 0.4.0
Alternatively, you can compile one of the earlier releases that don’t have that breaking change.