Search results for query: *

  1. A

    AccessViolationException on API Call

    Hi, Just a quick update. I have tried what you pointed out by changing the following: Public Declare Function rgetdat_bits Lib "hscnetapi.dll" Alias "rgetdat_bits_vb" (ByVal Server As String, ByVal num_points As Short, <[In](), [Out]()> ByVal getdat_bits_data() As rgetdat_bits_data_str) As...
  2. A

    AccessViolationException on API Call

    The only 2 things that I have added to the unmanage declarations is : - "Convert.ToInt16" for 16-Bit Integer compatibility, which do not seems to solve this issue. - Marshalled the ServerName to fixed length 255 characters , which do not seems to solve this issue. Just so you know, a lot of...
  3. A

    AccessViolationException on API Call

    The reason why I used Short is to have the Integer 16-Bit compatibility that the API requires. I believe I could use int16 intead or try to pass 32-Bit Integer and see what happens. Here is the VB6 code as per your request: HSCNAPI.bas : Public Declare Function rgetdat_bits Lib...
  4. A

    AccessViolationException on API Call

    Hi, I migrated a VB6 ActiveX to Vb.Net and I am having an issue on API Calls. The ActiveX consist of making API calls to read or write data from flat files. It works pretty well in VB6, but throws an exception in Vb.Net : AccessViolationException Let me know if you want me to post the working...
Back
Top