Simulating a memory exception

GT500Shlby

Member
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 want to have the program run under extreme memory circumstances and see if it generates an exception.

Is this possible at all?
 
Code:
Throw New OutOfMemoryException()

Thats how to generate the exception, if youre talking about actually bringing your system to its knees with excess memory consumption, I dont know what to suggest apart from writing a program that uses progressively more and more of it without releasing any.
 
Back
Top