Shop OBEX P1 Docs P2 Docs Learn Events
Unknown Bytecode Error — Parallax Forums

Unknown Bytecode Error

Istha PowronIstha Powron Posts: 74
edited 2010-04-14 16:07 in General Discussion
I posted this in the error codes topic, but I think no one noticed.

I have the error;

[noparse][[/noparse]Error IDE-0024] Unknown bytecode in the JEM file{wide}.

I have looked at the error code table which says that I should try not to do anything dodgy......which I try not to do anyway.

This occurs about half an hour after the software has been running happily. I have isolated the problem to this loop (i.e. if I remove everything else, the problem persists with the code below);

·// START - Main Program Loop
···· while (true)
········· {

//Clear string buffers

·····InBuffer.clear();
···· gpsBuffer.clear();

···· c = 0xff;

···· while (c != '\r' && rxIn.byteAvailable())
······· {
········· c = (char)rxIn.receiveByte();
········· InBuffer.append(c);
······· }
········· dispOut.sendString(InBuffer.toString());
········· System.out.println(InBuffer.toString());
}// End main loop



Any idea why this would run for about 9000 loops then die?

Any help greatly appreciated.

As well..has anyone written a NMEA parsing library??

Regards,

Istha

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔





The robot is going to lose. Not by much. But when the final score is tallied, flesh and blood will beat the damn monster.
Adam Smith

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2010-01-28 14:42
    This is a vague error, its true source is probably a combination of
    certain commands. You need to post the complete program
    and the exact error message displayed, inclusive any numbers.
    These numbers may reference a jemfile address.
    With the complete code I can generate the jemfile and perhaps
    find out what is causing the error.

    regards peter
  • Istha PowronIstha Powron Posts: 74
    edited 2010-01-28 22:34
    Peter,

    I think it had something to do with sending corrupted NMEA sentences to the IDE. I have put some caps accross the receive line and it seams to have fixed the problem for now.

    Thanks,

    I

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔





    The robot is going to lose. Not by much. But when the final score is tallied, flesh and blood will beat the damn monster.
    Adam Smith
  • Sharon KSharon K Posts: 1
    edited 2010-04-14 16:07
    I also think so.

    __________________
    Watch Kick-*** Online Free
Sign In or Register to comment.