title: Event Handler stopped working in current release of Window 10
body: <p>I have an event handler that monitors feedback from Canon Camera.  Had no issue with it in earlier versions of Windows10 but one of my clients updated yesterday and it stopped working.</p>
  
  <pre><code>  Public Shared Function handleObjectEvent( _
                  ByVal inEvent As Integer, _
                  ByVal inRef As IntPtr, _
                  ByVal inContext As IntPtr, _
                  ByVal camera As IntPtr)
           As Long
  
      Dim rtn As Long
  
      Select Case inEvent
  
          Case kEdsObjectEvent_DirItemRequestTransfer
  
              If globals.isCamera1 Then
                  Form1.controller1.actionPerformed("download", inRef)
              Else
                  Form1.controller2.actionPerformed("download", inRef)
              End If
  
          Case Else
              '//Release unnecessary objects.
              If IsNothing(inRef) = False Then
                  EdsRelease(inRef)
              End If
  
      End Select
  
      rtn = CLng(EDS_ERR_OK)
      Return rtn
  
  End Function
  </code></pre>