Re: MissingMethodxception

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alessandro (alessandro_m__at_hotmail.com)
Date: 12/01/04


Date: Wed, 1 Dec 2004 17:30:07 +0100

Yes, I have recompiled the DLL for CF. All code is managed (C#).
The strange thing is that an application that uses the library (method
"connect") gives an exception.
The same application build from an other VS solution do not give the
exception.
Anyway all applications gives an exception (MissingMethodException) calling
the method "Send"..

Since code uses inheritance in depth and contains some calls to virtual
methods (see my first mail), my idea is that the problem arises during
linking of virtual methods. Do you think so?

Thank you
Alessandro

"Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> ha scritto nel messaggio
news:%23Hr0vl71EHA.3408@tk2msftngp13.phx.gbl...
> Desktop managed assemblies are not retargetable to the device. They must
> be recompiled (and often reworked to use a smaller API set). Desktop
> unmanaged binaries won't work at all because they're compiled for the
> wrong processor, are linked against libraries that don't exist in CE and
> usually use APIs that don't exist in CE.
>
> --
> <ctacke/>
> www.OpenNETCF.org
> Your CF searches start and end here
>
>
> "Alessandro" <alessandro_m_@hotmail.com> wrote in message
> news:u6$PFe71EHA.1204@TK2MSFTNGP10.phx.gbl...
>> Hi everybody,
>>
>> I have a TCP/IP communication library working fine on PC.
>> I am trying to use it on a PocketPC application. I have simply referenced
>> the communication library project and build the application.
>> The application start but calling some method it stops giving a
>> "MissingMethodException".
>>
>> Since I have no more ideas to resolve the problem I will try to describe
>> situation in details.
>>
>> I had different results:
>> 1- In a first test application calling the "Connect" method I had a
>> "MissingMethodException" both in Pocket PC and in the emulator
>> 2- In a second test application (different work space) the call to
>> "Connect" works fine. But I have the same error on the method "Send"
>> 3- I have imported the first test application in the second application
>> workspace. "Connect" works fine but "Send" gives the exception
>> 4- In a third test application (different work space) I have the same
>> errors of points 2 and 3.
>>
>> A have the following code (I have simplified it)
>>
>> public abstract class BaseClient
>> {
>> public abstract void Connect(bool flag);
>> public void Connect() {Connect(true);}
>> protected abstract void Send(...);
>> protected byte[] Transact(...)
>> {
>> ....
>> this.Send(...)
>> }
>> ......
>> }
>>
>> public abstract class ModbusClient : BaseClient
>> {
>> public void Write(.....)
>> {
>> .....
>> .... = Transact(...);
>> ......
>> }
>> }
>>
>> public class ModbusTcpClient : ModbusClient
>> {
>> public override void Connect(bool flag)
>> {
>> ....
>> }
>> public override void Send(...)
>> {
>> ....
>> }
>> }
>>
>>
>> // Pocket PC Application
>>
>> {
>> .....
>> ModbusTcpClient tcpclient = new ModbusTcpClient (....)
>>
>> tcpclient.Connect(); // MissingMethodException calling
>> BaseClient.Connect()
>> // Exception in first
>> application......works fine in second application
>> tcpclient.Write(....); // MissingMethodException on
>> BaseClient.Transact() calling BaseClient.Send()
>> // Exception in all application
>>
>> ......
>> }
>>
>> Thank you for any help
>>
>> Alessandro
>>
>
>



Relevant Pages

  • Re: modular programming in Forth
    ... writing larger systems, like Netscape, the Linux kernel, Emacs, gcc. ... Concerning dynamically linked libraries: how do they help with name ... claim that the lack of a module system is the reason for Forth's ... No way to avoid collisions of program-generated exception numbers. ...
    (comp.lang.forth)
  • Re: Cpp Considered Harmful
    ... NDEBUG to eliminate the debugging code from the release build. ... > an exception, ... > formats the expression's value as a string. ... >> managing libraries? ...
    (comp.lang.cpp)
  • Re: Error looping through controls on form in Access 2003
    ... >>code apply only to the controltypes that I wanted it to apply to. ... > I see 2 reasons to choose error handling over pre-checking conditions to avoid ... > new cases of the same condition in new versions of the underlying libraries. ... Now those are the exceptional cases that the word exception implies. ...
    (comp.databases.ms-access)
  • Workaround to Assembly reference for Managed/Unmaged C++ dll in ASP.Net
    ... Calling C++ library from ASP.NET web service ... (Exception from HRESULT: 0x8007007E) ... 2005 Runtime Libraries on the machine)? ... assemblyName, Boolean starDirective) +32 ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: License of that GNAT patch ?
    ... Exception, you may: ... contributors and you enter license hell as Linux illustrates. ... and runtime libraries to free ones, even if the software built on top ...
    (comp.lang.ada)