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 (show other bugs)
Version: unspecified
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-14 06:11 UTC by Zhenyu Guo
Modified: 2015-08-14 06:12 UTC (History)
3 users (show)

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


Attachments

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.

Thanks,
Zhenyu

Note You need to log in before you can comment on or make changes to this bug.