MissingMethodException

  • Thread starter Thread starter Malleier Alfred
  • Start date Start date
M

Malleier Alfred

Hello,

when deploying (F5) my Pocket PC Project in VB.Net a MissingMethodException
raises. If I set a breakpoint in that line, no exception occurs and it works
fine.

Wath to do?

Alfred Malleier
 
Can you post the line of code that is having the problem as well as the few
on either side of it? I assume it is a call out to another method. Is there
anything unusual about the destination?
Thanks.

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

I am very happy about this replay.

My VB.Net Pocket PC Project consists of 5 Forms, 2 Class-Files and a Module
File. The Mainform has a Tabstrip, 4 Listviews, 11 Buttons, a Main Menu, 3
Context Menus and a Progress bar. The 4 other forms have some Labels and
Textboxes to show Customer and Article detail data, the document overview
and settings.

The data (customers, articles and documents) are stored in 3 CVS Textfiles.
Therefore a have a class for File IO. In the other class file are some small
classes used in the programm.
Can you post the line of code that is having the problem as well as the few
on either side of it? I assume it is a call out to another method. Is there
anything unusual about the destination?

When the problem with the MissingMethodException began, I removed any
control from form1 and step by step any declaration and Subs. Only in Sub
New I had a ON ERROR.. Statement and:

On Error resume next
Dim Alfa as new AlfaClass
Alfa.InitFiles()

I made many attemts to solve the problem:
- using own NameSpaces
- putting the classes in an external assembly
- Threading
- changing Indentifiers
- and so on..

I discovered, that with the ON ERROR statement or any reference to the
ErrObject, the exception raised in line
Public Class Form1

Whitout the ErrObject in line Alfa.InitFiles. So I defined a variable in
Form1:

Dim ErrOb As Microsoft.VisualBasic.ErrObject

Then pressing F5 the project begans to deploy but after some seconds it
stops to run without any message.

(The Try Catch-block had the same behaviour)

I put the entire solution on Www.mastersoft.cc/pocket.zip

I would be very happy if you try it.

Thanks,

Alfred Malleier
 
Can you post a smaller example of your problem? Hopefully something just a
few lines long, the minimum that can demonstrate it. There is quite a bit
of code/controls in the project on your web site, presumably most of them
unrelated to the problem.
Thank you.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Brian,
Can you post a smaller example of your problem?
the sample demonstrates that the project starts if you set a breakpoint on
line Alfa.InitFileIds(Me) of
Private Sub InitFields()
Dim Alfa As New WP.Dateien.Alfa
Alfa.InitFileIds(Me)
Alfa = Nothing
End Sub

I need some hours to write a smaller project. I will post it later.

There is one more problem in this project not concerning this problem:

On Form1 please edit the context menu CMArticle

You will find 2 separator Items

Please remove one of this separators and recreate it with the 'Insert
Separator' function (right mouse)

Press F5 and you will see the programm raises an exception in line:

'MenuItem10
'
Me.MenuItem10.Text = "-"
'
If you move this line bevore

Me.CMArticle.MenuItems.Add(Me.MenuItem10)

no error occurs.

Many thanks

Alfred Malleier
 
Hello Brian,
Can you post a smaller example of your problem?
I am sorry. It is not possible to locate the problem. If I remove the lines
of code causing the problem, it moves to other code lines. If I remove them,
the problem too moves, and so on..

Thanks.

Alfred Malleier
 
Back
Top