for example i have "DisableDebugger" in the beginning of the code, and later on..
Code: Select all
IncludeFile ...
EnableDebugger
IncludeFile "units_process.pbi"
DisableDebugger
IncludeFile ...
Code: Select all
Debug u
Debug ArraySize(unit())
Debug unit(u)\go_i
Debug unit(u)\go_k
Debug ArraySize(mp(),1)
Debug ArraySize(mp(),2)
Debug ArraySize(mp(),3)
mp(unit(u)\go_i, unit(u)\go_k, 2) = #farm01 ; <--------- error here
Code: Select all
11
200
59
48
299
299
3
additionally, the error does not occur if i comment out the "DisableDebugger" in the line next to the include statement or if i don't use En/DisableDebugger at all. also the programm is running fine when compiled without debugger.
at another time i had the error "InitKeyboard() must be called before.." at ExamineKeyboard(), though InitKeyboard was called successfully. this also disappeared when changing the debugger statements.
i'm using no threads, but a little memory stuff and pokes here and there (
tested with pb 430,431 and 440b3, all the same.
unfortunately i can't reproduce this in smaller snippets, so i have to upload the necessary files (482kb zip / >10.000 lines of code).
[link removed]
i merged the includefiles to one file, so that now the lines with Enable/DisableDebugger are:
6
7830
7403
and the error occurs at line 7535
if the program has started and you can see the screen, press F3 to load a saved state. within some second the error schould occur.
onestly, i don't expect somebody can help me with this, since i cannot assure it isn't simply a bug i produced by corrupting memory of pb-internals. on the other hand there's a chance that it's a pb bug, but i understand if fred/freak doesn't want to spend time on this eventuality.
any idea is appreciated.


