title: Memory Leak When using InkEdit control
body: <p>We have a Windows Forms application that uses the Microsoft InkEdit control. This has not been a problem for 15 years. Worked fine with windows 7, 8 and 10. However, a recent windows 10 update has introduced a memory leak when this control is called.</p>
  <p>There was a similar question on Stack Overflow:
  [https://stackoverflow.com/questions/63645140/memory-leaks-in-inkedit-control]</p>
  <p>We have implemented those solutions into our code however we still have the memory leak.</p>
  <p>Analysis seems to indicate the the windows DLL mshwLatin.dll is leaking memory.</p>
  <p>I am showing a simple example to duplicate the problem. Again, occurs on somewhat latest Windows 10. Have a window call this window and then close it. My sample app starts at 4MB and grows to over 100MB after opening and closing 7-10 times.</p>
  <p>Looking for a solution to the memory leak if there is one or how best to report this to Microsoft.</p>
  <pre class="lang-vb prettyprint-override"><code>Imports Microsoft.Ink  
  
  Public Class Form2  
      Dim inkfield As New InkEdit  
      Dim inkfield2 As New InkEdit  
      Dim inkfield3 As New InkEdit  
      Dim inkfield4 As New InkEdit  
      Dim inkfield5 As New InkEdit  
  
      Public Sub New()  
  
          ' This call is required by the designer.
          InitializeComponent()
  
          ' Add any initialization after the InitializeComponent() call.
          Me.Controls.Add(inkfield)
          Me.Controls.Add(inkfield2)
          Me.Controls.Add(inkfield3)
          Me.Controls.Add(inkfield4)
          Me.Controls.Add(inkfield5)
          inkfield.Location = New Point(10, 10)
          inkfield2.Location = New Point(10, 40)
          inkfield3.Location = New Point(10, 70)
          inkfield4.Location = New Point(10, 100)
          inkfield5.Location = New Point(10, 150)
          inkfield.Height = 24
          inkfield2.Height = 24
          inkfield3.Height = 24
          inkfield4.Height = 24
          inkfield5.Height = 24
      End Sub
  
      Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
          Me.Close()
      End Sub
  
  End Class
  </code></pre>