A
Andrew Merisanu
Hello All,
I have to call a C API function decalred as:
ing GetParameters(int DeviceID, BSTR *ParametersXML)
I tried to do this using the following DLLImport:
<DllImport("avlcontroller.dll", EntryPoint:="GetParameters")> _
Public Shared Function GetParameters(ByVal DeviceId As Integer, ByRef
ParametersXmlPtr As System.IntPtr) As Integer
End Function
This works in that the correct data is returned. However, I have a memory
leak that I cannot seem to find. It's definetly not in the API because we
tested calling it from C++ and it works fine.
Is my declaration correct? Is there something I should be doing differently?
TIA
Andrew
I have to call a C API function decalred as:
ing GetParameters(int DeviceID, BSTR *ParametersXML)
I tried to do this using the following DLLImport:
<DllImport("avlcontroller.dll", EntryPoint:="GetParameters")> _
Public Shared Function GetParameters(ByVal DeviceId As Integer, ByRef
ParametersXmlPtr As System.IntPtr) As Integer
End Function
This works in that the correct data is returned. However, I have a memory
leak that I cannot seem to find. It's definetly not in the API because we
tested calling it from C++ and it works fine.
Is my declaration correct? Is there something I should be doing differently?
TIA
Andrew