Shop OBEX P1 Docs P2 Docs Learn Events
Error number 124 Data occupies the same location as program — Parallax Forums

Error number 124 Data occupies the same location as program

Alan OgborneAlan Ogborne Posts: 6
edited 2007-06-23 18:43 in BASIC Stamp
I got this error message when I add·Debug lines to the calibrate.bs2 program downoaded from the parallax website. I am trying to understand how the program works. and to find out why it does not work with my homemade decoders!

Any ideas what this means and how to overcome it?

Thanks
Alansmhair.gif

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-06-23 17:14
    Some WRITE operation/s encroaching on the program area of the memory map.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-06-23 17:56
    No, it's not WRITEs that are causing the problem. This is a compile-time error. Errant WRITEs are a runtime issue and would never be detected, except by the program malfunctioning. In this particular program, the data area is at the beginning of the program area in EEPROM. The program begins at the end of EEPROM and builds back towards the beginning. If you add too much to the program -- and wordy DEBUGs can do this quickly -- the program will overlap with the allocated data area and give you that error. The cure is to be more sparing with your DEBUG statements.

    -Phil
  • Alan OgborneAlan Ogborne Posts: 6
    edited 2007-06-23 18:43
    Thanks very much - will do as advised

    Alan
Sign In or Register to comment.