MissingMedthodException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am developing a Pocket PC project on WinXP and Pocket PC 2002/2003 Emulator and a real Compaq PPC. After some days the project does not start any more. A MissingMethodException draws at the first line of form1. I made a copy of may source files and began to remove all the controls and Subs from Form1. After having removed all (except some line in Sub New) I found that the On Error resume next statement was the problem. After two days of testing I discovered, that the CF has problems to load the Mircosoft.VisualBasic.ErrorObject.

-If I set any statement that refers to the err-object in Sub Main, the deploy raises a MissingMethodException at this position
-If I remove all references and statements relating to the err-object, the program raises a MissingMethodException before deploy is finished or during execution
-If I define a variable of type ErrorObject at module level and than press F5, the system begins to deploy and after some seconds ends runing without any exception.

An other guy had the same problem this summer (he rewrote form1)
Is there anyone who knows a solution??

Thanks,

Alfred Malleier
 
Are you saying that the same code used to work fine for you but now it
doesn't? Does it fail on every device? Does it fail only when deployed from
Visual Studio or also when run on its own? Have you tried creating a new
project with the same code?
Could you post the smallest .exe that demonstrates the problem?
Thanks.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Brian,

sorry, but I not saw your posting.
Are you saying that the same code used to work fine for you but now it
doesn't?
Yes, from one moment to the other this SystemMethodException began to raise.
I removed the last changes, but the problem persists.

Wenn I set a breakpoint in the line of form1, were the code goes first time
in a class, I need to wait less than a second and the project runs normally.
In this moment I see that the IDE refreshes itself and the Autos-Window.
Does it fail on every device? Does it fail only when deployed from
Visual Studio or also when run on its own?
Yes. It best runs on Pocket PC 2003 Emulator, but it also runs on Pocket PC
2002 Emulator. It absoutely not runs on my Compaq iPAQ PPC Device. The
compiled Exe not runs nor on the Emulator, nor on the physical device.
Have you tried creating a new project with the same code?
Not exactly, but I:
- added a new form and copied in the code of form1
- I moved all the class code in new (module) files
Could you post the smallest .exe that demonstrates the problem?
Thanks.
Yes. The exe has 96 KB on www.mastersoft.cc/WinCoPocket.exe

Thanks,

Alfred Malleier
 
Back
Top