Game sometimes crashes upon exit (Developers)
> Since the crash occurs after the "old" interrupt vector has been restored,
> this saved vector most likely has been inadvertently modified.
> star_background is defined as:
...
>
> unsigned char star_background[8000];
>
>
> and accessed:
>
>
> Offset = TempRand&0x1FFF;
> memset(star_background+Offset, Star, 1);
>
>
> The problem is that 0x2000 is 8192, not 8000.
D'oh! Thank you. That explains what I am seeing neatly. It also explains why the issues did not happen every time, since presumably sometimes my random star background routine didn't generate any values > 8000. Thanks again.
Complete thread:
- Game sometimes crashes upon exit - KarlG, 28.05.2022, 21:59
- Game sometimes crashes upon exit - Japheth, 29.05.2022, 06:21
- Game sometimes crashes upon exit - tkchia, 29.05.2022, 09:53
- Game sometimes crashes upon exit - KarlG, 29.05.2022, 15:26
- Game sometimes crashes upon exit - KarlG, 29.05.2022, 15:24
- Game sometimes crashes upon exit - tkchia, 29.05.2022, 09:53
- Game sometimes crashes upon exit - Japheth, 29.05.2022, 06:21