Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am designing an automated form in VB.NET. On windows XP, I want to generate a memory exception to test how the program will handle it. Also, I wan't to have the program run under extreme memory circumstances and see if it generates an exception.

 

Is this possible at all?

  • *Gurus*
Posted

Throw New OutOfMemoryException()

 

That's how to generate the exception, if you're talking about actually bringing your system to its knees with excess memory consumption, I don't know what to suggest apart from writing a program that uses progressively more and more of it without releasing any.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...