2

Closed

GetDeviceVersion crashes with x64

description

Hello,
 
I've downloaded the lastest version from svn respository (rev 45072) and I've noticed that CeGetVersionEx(out VersionInfo) crashes on GetDeviceVersion call when library is built for x64 platform. It works correctly on x86.
(file RAPI.cs line 1136).
 
I have read the previous issues #5278 and #7045, but I have no clues, on how to resolve this issue.
 
Do you guys have any idea ?
 
Hervé
Closed Jul 12, 2012 at 10:10 PM by RobertWachtel
I cannot reproduce this. Please feel free to reopen this work item if this is still an issue.

comments

NJLDoc wrote Jan 16, 2012 at 11:09 PM

I have the same issue. Anytime the communication dll is used the program hangs raising {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."} I do not get the error if there is no device connected. The simple code that follows is a sample and I cannot break into code when the device is attached.
Public Shared Function DevicePresentAndConnected() As Boolean
    Dim bSuccess As Boolean
    Using oRapi As New RAPI
        Try
            If oRapi.DevicePresent Then
                'oRapi.Connect()
                bSuccess = True
                'oRapi.Disconnect()
            Else
                bSuccess = False
            End If
        Catch ex As RAPIException

        End Try
    End Using
    Return bSuccess

End Function