MissingMethodException take two

G

Guest

Hi all

Earlier this week I posted a message to the group about a MissingMethodException I can't get rid of (http://msdn.microsoft.com/newsgroup...work&mid=16769687-6187-4c6e-9363-7846db61152a

No resposes until now, but I have reached a point where I'm really puzzled. The fact is that now I have my original application and a little test application both using the offending dlls and the test application,running on the h5450, can call the wrapped method without a problem.

The obvious difference between the apps is that the real application is bigger and uses quite a few other managed and unmanaged dlls. So, at least to discard possible sources of errors now I have two questions
1) Is there some limits on the number of assemblies a CF app can reference
2) Is there any known circumstance under what a MissingMethodException is thrown but the real problem is something else

Thank you very muc
 
C

Chris Tacke, eMVP

There is a limitation to the amount of IL possible in a single method. This
is usually an issue with Forms that have a lot of controls (panels and tabs
with a lot of controls on one form). Is this a possible problem in your
case?

-Chris


Jose Luis Balsera said:
Hi all,

Earlier this week I posted a message to the group about a
MissingMethodException I can't get rid of
(http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotne
t.framework.compactframework&mid=16769687-6187-4c6e-9363-7846db61152a)
No resposes until now, but I have reached a point where I'm really
puzzled. The fact is that now I have my original application and a little
test application both using the offending dlls and the test
application,running on the h5450, can call the wrapped method without a
problem.
The obvious difference between the apps is that the real application is
bigger and uses quite a few other managed and unmanaged dlls. So, at least
to discard possible sources of errors now I have two questions:
1) Is there some limits on the number of assemblies a CF app can reference?
2) Is there any known circumstance under what a MissingMethodException is
thrown but the real problem is something else?
 
É

éric

2) Is there any known circumstance under what a MissingMethodException is
thrown but the real problem is something else?

Not sure if it's related and my solution to the problem was anything but
pretty but...

I had created a dll which was triggering certain events for the app
referencing the dll to capture.
If the app referencing this dll did not have corresponding Methods to
capture ALL these events I was
getting MissingMethodExceptions... To resolve it I put try{ trigger event}
catch{} in my dll.

for some reason I don't think this the best way to resolved this issue!?

maybe your are experiencing something simillar?

if you can change the dll try that otherwise try to have a method for every
event the dll is producing... just to test.

éric


Jose Luis Balsera said:
Hi all,

Earlier this week I posted a message to the group about a
MissingMethodException I can't get rid of
(http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotne
t.framework.compactframework&mid=16769687-6187-4c6e-9363-7846db61152a)
No resposes until now, but I have reached a point where I'm really
puzzled. The fact is that now I have my original application and a little
test application both using the offending dlls and the test
application,running on the h5450, can call the wrapped method without a
problem.
The obvious difference between the apps is that the real application is
bigger and uses quite a few other managed and unmanaged dlls. So, at least
to discard possible sources of errors now I have two questions:
1) Is there some limits on the number of assemblies a CF app can reference?
2) Is there any known circumstance under what a MissingMethodException is
thrown but the real problem is something else?
 
G

Guest

First of all, thank you for your interest in my question.

Well, the form has no tabs. It contains 29 controls (counting menu items, toolbar buttons and listview column headers). Is that too much?
 
G

Guest

Thank you for your interest, Éric

Yes, the class in the managed dll has an event I didn't have a handler for. But I never created an instance of this class, I was just calling one of its static methods. Just for testing purposes, I have created an instance of the class and subscribed to the event. Unfortunately, I'm still seeing the MissingMethodException.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top