.NET 6 and C++/CLI Dllexport p/invoke in problem
JieGG
1
Reputation point
I discovered a serious problem.
I in c++ used cli and dllexport, try in use C# 'P/Invoke' call c++ dll export function. but in DoNet6 throw 'SEHExcption'; but DoNet5 can normal working.
issues demo:
C++ code:
C# code: