18 references to OutOfMemoryException
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
236Return New OutOfMemoryException(Description)
PresentationCore (2)
System\Windows\Media\MediaContext.cs (1)
426throw new System.OutOfMemoryException(SR.MediaContext_OutOfVideoMemory);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
391throw new OutOfMemoryException (message);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
236throw new OutOfMemoryException(SR.Format(SR.BufferSizeTooLarge, _internalBufferSize));
System.Memory (1)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
250throw new OutOfMemoryException(SR.Format(SR.BufferMaximumSizeExceeded, capacity));
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
61throw new OutOfMemoryException(Marshal.GetPInvokeErrorMessage(errorCode));
src\libraries\System.Private.CoreLib\src\System\InsufficientMemoryException.cs (2)
21public InsufficientMemoryException() : base(GetDefaultMessage()) 27: base(message ?? GetDefaultMessage())
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
512throw new OutOfMemoryException(SR.OutOfMemory_StringTooLong); 518throw new OutOfMemoryException(SR.Lock_Enter_WaiterCountOverflow_OutOfMemoryException);
System.Private.Windows.Core (2)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (2)
30return new OutOfMemoryException(SR.GdiplusOutOfMemory); 34return new OutOfMemoryException(SR.GdiplusInsufficientBuffer);
System.Text.Json (1)
System\Text\Json\ThrowHelper.cs (1)
604throw new OutOfMemoryException(SR.Format(SR.BufferMaximumSizeExceeded, capacity));
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2161return insertIndex < 0 ? throw new OutOfMemoryException(SR.ComboBoxItemOverflow) : insertIndex; 2214throw new OutOfMemoryException(SR.ComboBoxItemOverflow);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1546throw new OutOfMemoryException(SR.ListBoxItemOverflow); 1602throw new OutOfMemoryException(SR.ListBoxItemOverflow);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3202throw new OutOfMemoryException(SR.OutOfMemory);