Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8905045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:17:33+00:00 2026-06-15T02:17:33+00:00

I am working on a C# code running on .NETCF 3.5 on WindowsCE 6.0

  • 0

I am working on a C# code running on .NETCF 3.5 on WindowsCE 6.0 that is throwing MissingMethodExceptions for Func`2<> during runtime. The code parts where the exception occurs is random.

The weird thing is, this happens when you already use the application for a while AND where definitely many calls to Func`2 already happened. (eg. via IEnumerable.Select() or .Where())
It seems that this behaviour starts if you just load enough Types during the lifetime of the application such that the sum of assembly file sizes exceeds ~18MB. But there is enough memory (RAM) available on the device to load the Type.

Also activated LoaderLogging but to no avail. It only shows me a TypeLoad error for Func`2.

As I ran out of ideas:
What could be the cause of such errors?

Unfortunately I cannot share any code because it is 1) property of the company I work for and 2) many ten-thousand lines of code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:17:35+00:00Added an answer on June 15, 2026 at 2:17 am

    It seems there is a limit on .NETCF:

    One can only construct 1024 unique closed types per generic type declaration. (For more information see section “Limitations”: http://blogs.msdn.com/b/romanbat/archive/2005/01/06/348114.aspx)

    Meaning:

    List<int> a;
    List<int> b;
    List<int> c;
    

    takes one “slot”,

    List<int> d;
    List<string> e;
    

    takes two “slots” (two unique closings), and so on.

    Tricky thing was: Usually this raises an ArgumentException, but sometimes .NETCF throws MissingMethodExceptions instead.
    (see “3. Differences in exceptions thrown.”: http://blogs.msdn.com/b/nazimms/archive/2005/01/25/360324.aspx)

    We reduced the usings of Func`2 by using our own Delegate Types where possible and this has solved the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code is working fine without any errors when running in Netbeans. If I
I'm working on writing some automation code and I'm running into a problem finding
I'm working on a machine which has some code running on it which sets
I've inherited some code that I need to debug. It isn't working at present.
I have some c# code running on sharepoint that i use to check inside
con.getInputStream() throw exception, when the code running on android, but when copy the code
I'm working on some code that does some fairly heavy numerical work on a
I have an extension of this question . I have that exact code running
I am working on some legacy code running Spring 2.5. I need to use
I'm just trying to get admob running and tested different working code examples from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.