Max amount of data for a form

  • Thread starter Thread starter Stephen Dougherty via DotNetMonster.com
  • Start date Start date
S

Stephen Dougherty via DotNetMonster.com

Is there a maximum amount of data that can be loaded onto a form, or processed by a form??

I am building a standalone application, which has a load of data accociated with a button click event.

After adding the latest batch of data, and debug building, I get the following error:

An unhandled exception of type 'System.InvalidProgramException' occurred in system.windows.forms.dll

Additional information: Common Language Runtime detected an invalid program.

Now I realise that this is probably not the most efficient way to go about this, but as a learning developer, I need to discover the limits of VB.Net.

Thanks for any pointers or help
Steve
 
I don't think the Framework itself poses any defined limits - they can
rather be imposed by the amount of memory or computing resources available.
More than that, this exception does not mean you have exceeded some resource
limit - it's meaning, according to MSDN, is:

"The exception that is thrown when a program contains invalid Microsoft
intermediate language (MSIL) or metadata. Generally this indicates a bug in
the compiler that generated the program."

Also, MSDN suggests that the following KB article is reviewed:

Q312544, "What to Do If You Receive an InvalidProgramException Error
Message"
 
Back
Top