I\'m currently debugging a method we use to tag images with a certain text before displaying them in our system.
The tag method looks like this at the moment:
<
If you are looking for a way to ensure you'll have enough memory available for an operation, use MemoryFailPoint
.
With this, through a using
, you can define a region in which you will need a certain amount of memory. If that isn't available, it will throw a recoverable InsufficientMemoryException
.
See http://msdn.microsoft.com/en-us/library/system.runtime.memoryfailpoint.aspx for more information.