This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inject IJSRuntime jsRuntime; | |
<h1>Out of memory test.</h1> | |
<p role="status">Buffer collection count: @_collectionCount</p> | |
<button class="btn btn-primary" @onclick="CreateBuffer">Create Buffer</button> | |
<button class="btn btn-primary" @onclick="CreateBufferFromJs">Create Buffer From Js</button> | |
<button class="btn btn-primary" @onclick="DestroyBuffer">Destroy Buffer</button> | |
@code { | |
private int _collectionCount = 0; | |
private List<BufferHolder> _bufferHolders = new List<BufferHolder>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using Dicom.Imaging; | |
using Dicom.IO.Buffer; | |
namespace Dicom | |
{ |