[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

EntryPointNotFoundException

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.




1 Answer

Tkachenko Aleksey

3/15/2007 2:30:00 AM

0


"Tkachenko Aleksey" <no.spam@no.ru> wrote in message
news:e3%23SQEhZHHA.1508@TK2MSFTNGP06.phx.gbl...
> 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.

Sorry, exceptions in background thread were masked by try-catch, DllImport
was wrong, no problem now

Aleksey.