2 Replies Latest reply on Apr 14, 2015 7:17 AM by Brian Murphy

    MC9190 Windows embedded crashes with an application that was originally developed for the MC9090

    Brian Murphy

      I have an application developed for an MC9090 but I want to deploy it on to our MC9190's. It works perfectly on the MC9090 but crashes on the command

       

       

              Try
                  If (Symbol.Barcode.Device.AvailableDevices.Length > 1) Then
                      Dim devFrm As New frmSelectDevice
                      devFrm.ShowDialog()
                      Dim devName As String = devFrm.GetDeviceName()
                      If (Not ((devName Is Nothing) Or (devName Is ""))) Then

                          Scanning._MyReader = New Symbol.Barcode.Reader(New Symbol.Barcode.Device(devName))

                      Else
                          MessageBox.Show("No device selected.")
                          Return False
                      End If

                  Else
                      ' Create new reader, first available reader will be used.
                      Scanning._MyReader = New Symbol.Barcode.Reader
                  End If

                  ' Create reader data
                  Scanning._MyReaderData = New Symbol.Barcode.ReaderData( _
                                                     Symbol.Barcode.ReaderDataTypes.Text, _
                                                     Symbol.Barcode.ReaderDataLengths.MaximumLabel)

                  ' Enable reader, with wait cursor
                  Scanning._MyReader.Actions.Enable()

       

      an error box pops up with the title "WrongMarshalSizeException was unhandled any help would be appreciated,

       

      Regards

       

      Brian