Author Topic: Unhandled Exception - Unknown error 1450 on .NET side?  (Read 833 times)

mansan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Unhandled Exception - Unknown error 1450 on .NET side?
« on: October 25, 2017, 09:01:37 AM »
Hello
Currently, I have an application that communicates to an Allen Bradley PLC through EthernetIPforCLX. The app has multiple timer that are querying the values of some determined tags every 250ms. Everything works well but, ocasionally (it appears to be at some random point), the library throws an exception at some point with a message "Unknown error 1450".

In the code, everything is wrapped inside a try-catch block except the declaration of the EthernetIPforCLX object (set IP, port and slot).

The detail of the exception is:

at System.Threading.EventWaitHandle..ctor(Boolean initialState, EventResetMode)
at MfgControl.AdvancedHMI.Drivers.EthernetIPforCLX..ctor()
at AdvancedHMIDrivers.EthernetIPforCLXCom..ctor()

Is there something I may be missing? Or is it due to a timeout by the PLC?
Thanks in advance. Great library btw.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: Unhandled Exception - Unknown error 1450 on .NET side?
« Reply #1 on: October 25, 2017, 09:21:07 AM »
There is a known issue that occurs randomly when only using the driver via code and allowing about 20 seconds to lapse without communication. It throws the same exception as you describe. There is a patch that resolves this:

https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5/Patches/

It is V3.99x patch 8. You can also use the pre-patched version:

https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5/