MissingMethodException

  • Thread starter Thread starter Peter Morris [Droopy eyes software]
  • Start date Start date
P

Peter Morris [Droopy eyes software]

Hi

I have created a simple C# WinForms app which executes a subroutine within
an assembly. As soon as I try to do anything with this assembly I get a
System.MissingMethodException

public unsafe void DoSomething()
{
Text = "Calculating";
TheSubroutineObject.Run();
}

public void button1_click(object sender, System.EventArgs e)
{
DoSomething();
}


When clicking the button, the exception seems to be raised *before* the Text
= "Calculating" line rather than after TheSubroutine.Run() - I find this to
be very strange.

Should I see the DLL in question in program files\MyApp along with my EXE?

Thanks


--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/
 
Stepping into the code should point you to the exact line. Where is
TheSubroutineObject defined?

What dll are you talking about (e.g. native, managed, yours, the
frameworks)? And on what target is this (emulator, device, PPC, WinCE)??

Cheers
Daniel
 
It seems that in your directory together with your .exe located old
assembly file and you are trying to call non-existent method from it.
Ensure that your all assemblies in this directory are updated correctly.
I've noticed that in some circumstance (e.g. when the file is locked at
WindowsCE device) VS.NET does not update application completely and say
nothing on it.

Try to reset your device, deploy application and try again.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Hi
Stepping into the code should point you to the exact line.

It doesn't, it appears to cause the error somewhere in between calls (very
odd).

Where is TheSubroutineObject defined?

In an assembly.

What dll are you talking about (e.g. native, managed, yours, the
frameworks)?

Compiled with Salford Fortran.net compiler, the WinForms app compiled with
/unsafe.

And on what target is this (emulator, device, PPC, WinCE)??

WinCE.
 
Assemblies compiled with Fortran are not supported on the NETCF (he says
never having tried it himself)

Cheers
Daniel
 
Assemblies compiled with Fortran are not supported on the NETCF (he says
never having tried it himself)

That's the MS fortran, I am currently trying the Salford compiler. I just
need to know how to identify which missing method is being called :-S


--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/
 
My comment would be the same for any compiler other than VB & C#. It is
basically an unsupported scenario. I think I gave you an idea of how I would
go about it earlier in your other thread.

Cheers
Daniel
 
Back
Top