[Mono-devel-list] Missing method in assembly

Carlos Alberto Cortez Guevara carlos at unixmexico.org
Thu Jan 29 14:15:54 EST 2004


Hi,

In my cvs mono build, it runs without problem. I review the Makefile and
saw nothing is wrong. Is is maybe a problem in the stable mono release?

Regards,
Carlos.

El jue, 29-01-2004 a las 12:06, Vadim B. Guzev escribió:
> Hello, mono-devel-list at lists.ximian.com!
> 
> 
> Can someone explain me why the attached example doesn't work?
> When I try to do:
>    make
>    mono TestPInvoke.exe
> 
> It throws the following:
> 8<-----------------------------------------------------------------
> ** (TestPInvoke.exe:25530): WARNING **: Missing method Test in assembly
> TestPInvoke.exe typeref index 2
> 
> Unhandled Exception: System.NullReferenceException: A null value was found
> where an object instance was required
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x40036f81]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x400455c0]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x40045fce]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x400461dc]
> in (unmanaged) /usr/local/lib/libmono.so.0(mono_compile_method+0x4d)
> [0x4008364d]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x4002f765]
> in <0x00028> (wrapper managed-to-native)
> System.Object:__icall_wrapper_mono_ldftn (intptr)
> 8<-----------------------------------------------------------------
> 
> This example works properly in MS VS.
> I use Mono 0.29 on Linux.
> 
> 
> Best regards,
> Vadim B. Guzev
-- 
--------------------------------------------------
/* The definition of myself */
using Cortez;
using GeniusIntelligence;

public class Carlos : Human, IGenius, ILinuxUser {

	static void Main () {
		Me.Think();
	}

}

--------------------------------------------------



More information about the Mono-devel-list mailing list