Tkachenko Aleksey
3/14/2007 8:17:00 AM
Hi All,
I am using the unmanaged C++ dll from C# by the DllImport.
There are two functions with similar names and parameters which differ by
case only,
for example testit and TestIt, they have different entry addresses.
I am trying to use testit from background thread and then from main thread
from _the same instance_ of C# class.
If I do not set the EntryPoint, it hangs after several calls in
background thread ( I think the TestIt called instead of testit? )
If I set the EntryPoint in DllImport, testit works thousands times from
background thread but
the call from main thread of another form produces the
EntryPointNotFoundException.
I just cannot imagine how it can be, because I use _the same instance_ and
hope that the function was dynamically linked after first call.
Aleksey.