[VB.Net] The memory is locked ! Interop + object array

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

    #1

    [VB.Net] The memory is locked ! Interop + object array

    Hi,

    I find myself in front of an incomprehensibl e problem :
    I'm using a COM function with two parameters :
    objectCOM.Sampl eFunction([TypeArray] as Int16, [DataArray] as Object)

    Before, i define TypeArray(0) = 0 and DataArray(0) = "MyString".

    But, once that the function is carried out, I have an error message with
    COMException: "The memory is locked".
    What happened and how can i resolve this ?

    Thx


Working...