Menu

#122 OnBC: too many macros

Bug
open
nobody
OnBoard C (71)
5
2004-03-21
2004-01-15
No

I just ran into an interesting bug in OnBC. I got to a
place in the development of some code where I compile
and things are fine *BUT* add one more #define and the
code throws a Fatal Alert immediately when launched.
The error is:

"Emul68KCommon.c, Line:1594, Index out of range."

I haven't had a chance to look at the OnBC source yet
(though I have an inkling of where to look 8o) ) but my
guess is that I overran an internal array of macros.

I am using v2.3 of OnBC.

Discussion

  • Wade Guthrie

    Wade Guthrie - 2004-03-21
    • labels: 587913 -->
    • milestone: 349193 -->
     
  • Wade Guthrie

    Wade Guthrie - 2004-03-21
    • labels: --> OnBoard C
    • milestone: --> Bug
     
  • Steve Little

    Steve Little - 2004-09-19

    Logged In: YES
    user_id=583634

    Probably a related problem, apparently the attached file
    results in an error: "Too many macros", as reported by
    Michoel Chaikin on the yahoo list. I seem to remember that
    there's a hard limit to the size of the array of macros in the
    code. Would be nice to change to a linked list or other
    dynamically sizeable data structure.

     
  • Steve Little

    Steve Little - 2004-09-19
     

Log in to post a comment.