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

NativeMethods TryPInvoke makes it difficult to initialize the library #1753

Open
benlongo opened this issue Mar 22, 2025 · 0 comments
Open

Comments

@benlongo
Copy link

Because TryPInvoke is called in a static initializer, it's difficult to change the native library loading behavior. For example, I'm trying to get this to run on an OSX laptop, and I had to do some hacky stuff to load libOpenCvSharpExtern.dylib via ModuleInitializer.

Why is TryPInvoke required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant