You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new solution with two projects, a Class Library and something runnable (I've used both a console app and a forms application). I'm targeting .NET Framework 4.7.2. Can also reproduce if targeting 4.5.0.
Install the NuGet package on the Class Library. When the DllExport configuration pops up, tick the Installed button on the Class Library project, then hit Apply. No other changes needed.
Write two exported functions in the Class Library project. Have the second one call the first. So something like this:
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
VS2019 v16.5.5, using .NET Framework 4.7.2 for the projects.
Data tab:
The text was updated successfully, but these errors were encountered:
meindratheal
changed the title
EExternalException in Delphi when calling a C# exported function that calls another exported function
System.MissingMethodException in C#/EExternalException in Delphi when calling a C# exported function that calls another exported function
Jun 1, 2020
Steps to reproduce:
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
Data tab:
Demo Project files / Samples / etc.:
Minimal sample project attached.
DllExportBug.zip
The text was updated successfully, but these errors were encountered: