Simulating a memory exception

GT500Shlby

Newcomer
Joined
Jul 7, 2003
Messages
13
Location
New Jersey
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?
 
Visual Basic:
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.
 
Back
Top