Debug THIS!!
BlitzMax Forums/BlitzMax Programming/Debug THIS!!
prog.bmx.d.s
11082: Fixup of -33380 too large for field width of 16 bits
Any idea what this error means anyone?
It seems that a Fixup, somewhere, is size os -33380, and its too large for a field width of 2 bytes.
Oh and the error occured in line 11082 in prog.bmx.d.s
Smart kid! Leaves me none the wiser.
some source might help us to help you, otherwise you'll just end up with more wisecracks like that.
although at a guess you could be trying to assign a 32bit (or even 64bit) value to a 16bit variable
For h2:ht=EachIn min_h_list
If h2.x>h.x-1 And h2.x<h.x+1 And h2.y>h.y-1 And h2.y<h.y+1
min_h_list.remove(h2)
EndIf
Next
For h2:ht=EachIn max_h_list
If h2.x>h.x-1 And h2.x<h.x+1 And h2.y>h.y-1 And h2.y<h.y+1
max_h_list.remove(h2)
EndIf
Next
OK - there was a lot of code but narrowed it down -
both lists contain the same type, and it doesn crash if you comment out one or other of these loops (i.e: they both work individually.)
Maybe a FlushMem between the two loops would help.
That aside, not a bloody clue what is going on there. It's a given I haven't given much thought to it, but eh.
Is this on a Mac?
Noel - Will give it a try.
Skids - Correct.
Tried a flushmem before both these loops and changing all references to h2 to h3 in the second loop - still get the same problem.
Hmmmm- tried to create a cut down working version showing the error - and didn't get an error. Guess I could mail you the whole lot, Skidracer?
Changed some compiler options - turned off
Quick build
Debug build
Build GUI app
And it compiles fine.
Hi,
This is a problem with the assembly code generated by the compiler.
I think it's caused by a 'big' block of code in a loop or an If/Then. It's only happening under debug because debug adds extra code, which makes the block even bigger.
I have recently cleaned up debug info quite a bit which will help, but a real fix isn't quite there yet.
In the meantime, you can help by moving stuff out of large blocks into functions.
Thanks Mark, and yeah it was a big block.