AGI Stack Overflow: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 2 revisions imported
Andrew Branscom (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:AGI Pages]]
[[Category:AGI Pages]]
<div align="center">Creating AGI Stack Overflow Information<span style="font-size: 22pt"></span><br />
<div align="center"><span style="font-size: 22pt">AGI Stack Overflow Information</span><br />
''By [[Nick Sonneveld ]]''<br />
''By [[Nick Sonneveld ]]''<br />
''Last updated 23/2/2001''</div>
''Last updated 23/2/2001''</div>
Line 6: Line 6:
&nbsp;
&nbsp;


Windows users may encounter the "stack blown error". Most Sierra AGI games work just under Windows. This happens when the stack is becomes filled. The culprits are AGI itself (in the case with [[agiw:Pimp Quest|Pimp Quest]] because it is filling around a brushed object in the title screen.. so there's lots of little lines to fill up and all these lines get pushed onto stack) and Windows. I'm not quite sure, but I think Windows has some sort of timer running in DOS mode that is called and pushes a bit too much on the stack.
Windows users may encounter the "stack blown error". Most Sierra AGI games work just under Windows. This happens when the stack is becomes filled. The culprits are AGI itself (in the case with [[Pimp Quest|Pimp Quest]] because it is filling around a brushed object in the title screen.. so there's lots of little lines to fill up and all these lines get pushed onto stack) and Windows. I'm not quite sure, but I think Windows has some sort of timer running in DOS mode that is called and pushes a bit too much on the stack.


So while the [[SBuffPicFill|picture fill routine]] has a lot of information pushed onto the stack, Windows pushes some extra stuff on and the stack overflows. AGI actually [[VectSysTimer|checks]] if the head of the stack is overwritten and so trips this stack error in the middle of a [[EGAPutBlock|screen write]].
So while the [[SBuffPicFill|picture fill routine]] has a lot of information pushed onto the stack, Windows pushes some extra stuff on and the stack overflows. AGI actually [[VectSysTimer|checks]] if the head of the stack is overwritten and so trips this stack error in the middle of a [[EGAPutBlock|screen write]].

Latest revision as of 19:20, 2 April 2025

AGI Stack Overflow Information

By Nick Sonneveld

Last updated 23/2/2001

 

Windows users may encounter the "stack blown error". Most Sierra AGI games work just under Windows. This happens when the stack is becomes filled. The culprits are AGI itself (in the case with Pimp Quest because it is filling around a brushed object in the title screen.. so there's lots of little lines to fill up and all these lines get pushed onto stack) and Windows. I'm not quite sure, but I think Windows has some sort of timer running in DOS mode that is called and pushes a bit too much on the stack.

So while the picture fill routine has a lot of information pushed onto the stack, Windows pushes some extra stuff on and the stack overflows. AGI actually checks if the head of the stack is overwritten and so trips this stack error in the middle of a screen write.


References



Also See