Delegate gets called sometimes from Unmanaged code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rubino57

    #1

    Delegate gets called sometimes from Unmanaged code

    Hi folks,

    It turns out that in the snippet below, the MCPCallback
    sometimes gets called from the unmanaged DLL. (ie. the
    messageBox you see inside MCPCallback). Ths callback
    is called asynchronously by a different thread from
    the unmanaged DLL.

    I would greatly appreciate any pointers?

    Regards,
    Ash

    --------------------------------------------------------------------------------
    Public Class Form1
    Inherits System.Windows. Forms.Form
    Dim cb As MsgCallbackDele gate = New MsgCallbackDele gate(AddressOf
    MCPCallback)
Working...