Closed meindratheal closed 4 years ago
Edited title and body to include that this also happens if everything's purely in C#, rather than calling from Delphi.
@meindratheal Is there any reason why are you avoiding our bug issue template ? Please update information.
It can be a duplicate of #130
That would be because I didn't know that template existed! I've updated to match, and also attached a minimal repro.
Thanks for the updated information! This is duplicate of #94
Steps to reproduce:
Call those functions from with C#. Observe that you get System.MissingMethodException when CausesError tries to call WorksFine.
In my use case I'm consuming these exports in a Delphi program. Calling WorksFine works fine, calling CausesError generates an EExternalException on the Delphi side, which indicates that an uncaught exception happened in the C# side (which would be the MissingMethodException). . . .
.NET DllExport 1.7.1.6918+61defd6
Demo Project files / Samples / etc.:
Minimal sample project attached. DllExportBug.zip