westonpace opened a new issue, #36506:
URL: https://github.com/apache/arrow/issues/36506

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   We specify the calling convention with:
   
   ```
   internal delegate* unmanaged
   #if !NET5_0_OR_GREATER
               [Stdcall]
   #endif
               <CArrowArrayStream*, CArrowSchema*, int> get_schema;
   ```
   
   Here is my understanding:
   
    * These functions are implemented in Arrow-C++  When we build Arrow-C++ we 
do not specify any calling convention (e.g. `/Gd, /Gr, /Gv, /Gz`) and therefore 
the default (`/Gd`) will be used which maps to `__cdecl`.
    * In the above, if we are < .NET 5.0 then it specifies `[Stdcall]`, which 
is wrong
    * In the above, if we are >= .NET 5.0 then it specifies the default, which 
will be `[Stdcall]` on Windows, which is wrong.
   
   In practice, this doesn't affect us because this only matters on 32-bit 
machines
   
   ### Component(s)
   
   C#


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to