Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET7 System.Runtime.InteropServices.SEHException: 'External component has thrown an exception.' #228

Closed
northstarvn opened this issue Nov 14, 2023 · 2 comments

Comments

@northstarvn
Copy link

northstarvn commented Nov 14, 2023

Steps to reproduce:

  1. Create a solution with: C# console, C++ DLL, C# dll (for exports). All attached in zip
  2. Test the C++ export OK
  3. The C# dll export following guidance here https://github.com/3F/DllExport/issues/130 fails with SEH exception. Even a manual config of the testExport.csproj to x86 didn't help and produced the same problem.
  4. Disassembly suggests the export entry doesn't point to function body
  • DllExport -version: 1.7.4
  • Used Visual Studio / MSBuild / ...: VS Community 2022 (64-bit) Version 17.6.2

testDll.zip

@anonymousjaggu
Copy link

anonymousjaggu commented Feb 9, 2024

Hi @3F

I am also facing the same issue, i have recently upgraded the projects from .Net 4.8 to .net core <TargetFramework>net8.0-windows</TargetFramework>

May i get some help on fixing the issue?

@3F
Copy link
Owner

3F commented Feb 9, 2024

Hello. Thanks for the report!

.NET 8 & .NET 7 (@northstarvn's testDll.zip) are not supported at the moment and it was already discussed in previous issues.

My implantation is planned according to the new priorities described in my last article

Closed as duplicate #219

@3F 3F closed this as completed Feb 9, 2024
@3F 3F added duplicate and removed bug labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants