Home All Groups Group Topic Archive Search About

Max amount of data for a form

Author
12 Jan 2005 11:37 AM
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

--
Message posted via http://www.dotnetmonster.com

Author
12 Jan 2005 12:46 PM
Dmitriy Lapshin [C# / .NET MVP]
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"

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Show quote
"Stephen Dougherty via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:8039c889d68c4abc875b54e245abc77a@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
>
> --
> Message posted via http://www.dotnetmonster.com

AddThis Social Bookmark Button