jacobbo / WebEye

WebEye is a collection of .NET controls.
190 stars 132 forks source link

What is the reason to compile StreamPlayer.dll with MT flag? #43

Open vzhadeyev opened 6 years ago

vzhadeyev commented 6 years ago

In my application I'm trying to use multiple instances of control (wanna make video wall with >100 streams), but at some point I get an error "1114 (A dynamic link library (DLL) initialization routine failed.)". On the internet there are suggestions to use /MD flag which will enable use of dynamically linked runtime and prevent from exceeding limits of address space. So was there any specific reason to compile with /MT flag?

jacobbo commented 6 years ago

The reason is to make the control less dependant on execution environment. In theory it can be recompiled using dynamic linking, but I’ve never done this.

On Wed, 14 Feb 2018 at 11:58, vzhadeyev notifications@github.com wrote:

In my application I'm trying to use multiple instances of control (wanna make video wall with >100 streams), but at some point I get an error "1114 (A dynamic link library (DLL) initialization routine failed.)". On the internet there are suggestions to use /MD flag which will enable use of dynamically linked runtime and prevent from exceeding limits of address space. So was there any specific reason to compile with /MT flag?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jacobbo/WebEye/issues/43, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvfwHLxnv5ksauQJgvOoiKbRQ-1HYEpks5tUspRgaJpZM4SFM9m .