Moving from 2.4 to 3.0

Former Member
Former Member
Hi,

I developed an app using Connect IQ 2.4 and I want to move it to 3.0.

When I'm running the application, I get an Unhandled Exception.

I tryed stepping at different places with no success.

Is there a way to get more info on this exception?

Besides from that, is there big changes that requires to refacto some code?

Thank you by advance.
  • I can't recall anything major between 2.4.x and 3.0.x.

    Have you tried putting in some Sys.println() calls to see how far the app gets? Maybe in various initialize() calls to start.
  • Former Member
    Former Member
    I found the issue by discretely removing code until exception was not raised anymore.

    Then, targeting line by line, I found the issue that was linked to an Object type issue.

    I have no idea why it was not raised in previous version but I don't really.

    So bad that debugger doesn't raise exception details...

    Thank you jim for you answer, I found the problem before but I'm please to hear that you don't recall any big changes.
  • Just curious, but what was the issue?

    3.0.x does add some additional checking at compile time, but can't recall anything at runtime:
    New automatic symbol checking (ASC) checks your code for mis-typed symbols at compile time, but keeps the dynamic functionality of Monkey C


  • Former Member
    Former Member
    The issue was that I was passing an object in a method that was doing home made mathematical exponential rolling average.

    A miss auto-complation that was not tested properly at that time and that was passing a HeartRateData object in a sensor update method that not made for handling this type...

    But no compiling error on that.