delphi - .NET Interop 'Method not found: 'Void System.Threading.Monitor.Enter.. -
a partner created com lib x.dll , x.tlb in c#, .net framework 4. had "com interop" checkbox checked in vs.
he referred register c#/vb.net com dll programmatically create tool registers .dll. worked. (our delphi app can access .com object) code used register (from above link) is:
assembly asm = assembly.loadfile (@"c:\temp\x.dll"); registrationservices regasm = new registrationservices(); bool bresult = regasm.registerassembly(asm, assemblyregistrationflags.setcodebase);
we imported x.tlb delphi 7, creating .pas file through making calls com library.
in delphi, when call function in com library, we're getting error:
...exception class eoleexception message 'method not found: 'void system.threading.monitor.enter(system.object, boolean byref)''. process stopped.
we have no idea means or how resolve it.
any suggestions?
when compiling c# dll, targeting .net version prior framework 4.
make sure setting in compiler targeting correct platform version.
Comments
Post a Comment