Bug 33101 - [feature request] dllexport or DLL_THREAD_ATTACH
Summary: [feature request] dllexport or DLL_THREAD_ATTACH
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Interop ()
Version: unspecified
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-08-14 06:11 UTC by Zhenyu Guo
Modified: 2015-08-14 06:12 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 33101 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Zhenyu Guo 2015-08-14 06:11:08 UTC
Hi there,

I want to load a mono .so file from a unmanaged executable using dlopen. When it is loaded, I'd like it to register something into the system, via say RegisterApp C# call, which can be implemented in two ways: (DLL_THREAD_ATTACH) automatic per module loading ctor as in C modules, or (DllExport) explicitly call some API via dlsym as if the system was calling a unmanaged function. Both cases seem not supported, so i'm wondering what is the best ways there.

Sorry if this is not  the right place to submit this request. Please help forward in that case.