In a WAD that I am making, there is a function that maintains part of the map state; it runs every second or so by delaying and restarting.
If the subfunctions it uses are left as functions, the bug manifests - local variables get trashed, including for-loop control variables (leading to a "runaway script" error). If I manually inline the functions and change the variable names to be unique, the bug does not manifest. The attachment includes a text file with a more detailed description.
Has anybody seen this before?
EDIT: Happens with 2.1 as well as 96.
[ACC 135] Possible Stack Management Problem
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- MartinHowe
- Posts: 2056
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
- MartinHowe
- Posts: 2056
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
- MartinHowe
- Posts: 2056
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)