Author Topic: EXCEPTION in DataPacket Handler [Get Axle] is not a valid floating point value  (Read 1170 times)

Adrian

  • Newbie
  • *
  • Posts: 2
    • View Profile
I have a Serial com setup to a truck scale.
I'm getting the following error, and didn't get before I upgraded, so not sure where the problem lies.
EXCEPTION in DataPacket Handler [Get Axle] is not a valid floating point value

nrDataProcessor1
Error occurs before we enter the nrDataProcessor1.OnDataPacket event.

It doesn't occur with every packet but almost every packet.

Stack:
:7650c41f KERNELBASE.RaiseException + 0x58
:00426c6e ConvertErrorFmt + $1E
:00636f7f TnrDataProtocol.DoHandlePacket + $97
:00636ddb TnrDataProtocol.IsPacket + $1B
:0062f890 TnrBaseIO.DoInputData + $C0
:00632ee4 TnrCustomComm.WinProc + $170
:00632bfd TMsgThread.Execute + $65
:0040a266 ThreadWrapper + $2A
:754b33aa kernel32.BaseThreadInitThunk + 0x12
:77719ef2 ntdll.RtlInitializeExceptionChain + 0x63
:77719ec5 ntdll.RtlInitializeExceptionChain + 0x36

I'm hoping you can point me to the problem

Thanks
PS I don't have source code so unable to debug.

I have tried to monitor the Com Port just before the error, and the following two images show the data that comes across the port:
I have attached the two images below ... can you have a look please Roman, as I cannot see any discrepancies here.

« Last Edit: April 09, 2013, 05:57:04 pm by Adrian »

Adrian

  • Newbie
  • *
  • Posts: 2
    • View Profile
I apologize to the list.

The Stack was misleading, and the problem was actually a String conversion to Float in my code in the nrDataProcessor1.onDataPacket event.
A string was empty  = '' and not initialized with a value at the time of the error, due to an unexpected condition arising.
This threw the not valid floating point value.

 :)