Shop OBEX P1 Docs P2 Docs Learn Events
IDE error 42 — Parallax Forums

IDE error 42

PlaneTeeRPlaneTeeR Posts: 100
edited 2006-05-29 18:42 in General Discussion
Hello everyone,

Busy with my bikecomputer project, when I made a first test of the new version with seperated classes it gave a ide error 42. I know i should add try/catch but where?

Johnny

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-05-29 14:31
    You have created a loop between constructors of Processor and Sensor.

    Display declares a new Processor, which declares a new Sensor, which declares a new Processor.
    That is not right.

    regards peter
  • PlaneTeeRPlaneTeeR Posts: 100
    edited 2006-05-29 17:33
    Ah I see, I've made some changes to it, but another question:

    How do i start my public void run()? Doesn't it start automatically?

    Johnny
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-05-29 18:26
    The only method that starts automatically is the main() method
    in the main program (that is the class you download to the javelin).
    So you must start your run() method from that main().

    regards peter
  • PlaneTeeRPlaneTeeR Posts: 100
    edited 2006-05-29 18:42
    Ah i found it, in the constructor of sensor i used this.run(); then it started the run method.

    Johnny
Sign In or Register to comment.