Same prob, sdl_driver.c, line 421. A different problem occurs with scaling
set to 1x1 (see later).
Call stack:
lineColor2(SDL_Surface * 0x00844e20, short 598, short 338, short 598, short
401, unsigned int 0) line 421 + 6 bytes
sdl_draw_line(_gfx_driver * 0x100a8088, rect_t {...}, gfx_color_t {...}, int
2, int 0) line 480 + 42 bytes
_gfxop_draw_line_clipped(gfx_state_t * 0x00435308 static_gfx_state, rect_t
{...}, gfx_color_t {...}, int 2, int 0) line 994 + 76 bytes
gfxop_draw_rectangle(gfx_state_t * 0x00435308 static_gfx_state, rect_t
{...}, gfx_color_t {...}, int 2, int 0) line 1090 + 67 bytes
_gfxwop_rect_draw(_gfxw_widget * 0x011cdf90, point_t {...}) line 589 + 135
bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x0118e510, _gfxw_widget *
0x012d1028) line 1397 + 36 bytes
_gfxwop_list_draw(_gfxw_widget * 0x0118e510, point_t {...}) line 1607 + 16
bytes
_gfxwop_port_draw(_gfxw_widget * 0x011e4f10, point_t {...}) line 1986 + 37
bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x0121ccc0, _gfxw_widget *
0x012a2240) line 1397 + 36 bytes
_gfxwop_port_draw(_gfxw_widget * 0x0121ccc0, point_t {...}) line 1993 + 16
bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x00b3e420, _gfxw_widget *
0x00b3f218) line 1397 + 36 bytes
_gfxwop_visual_draw(_gfxw_widget * 0x00b3e420, point_t {...}) line 1841 + 16
bytes
kNewWindow(_state * 0x008731d8, int 19, int 9, unsigned short 33922) line
2372 + 49 bytes
run_vm(_state * 0x008731d8, int 0) line 769 + 136 bytes
_game_run(_state * 0x008731d8, int 0) line 1554 + 41 bytes
game_run(_state * * 0x00435300 gamestate) line 1620 + 11 bytes
main(int 1, char * * 0x00870cc0) line 1064 + 10 bytes
mainCRTStartup() line 206 + 25 bytes
With scaling set to 1x1, many different weird problems occur such as:
- Once a command has been typed, graphics draw all over each other
- crashing when exiting freesci
- crashing after typing a command (freesci is attempting to call free)
Again with scaling set to 1x1, when running in the debugger I have no
problems at all, however the debugger did say this:
HEAP[freesci.exe]: Heap block at 00AD01C8 modified at 00ADFC04 past
requested size of fa30
Unfortunately I don't think I can tell when this message is given.
All of these problems, whether scaled to 1x1 or not, happen in 16 bit colour
mode as well.
Hope this helps,
Alex.
----- Original Message -----
From: "Stuffed Crust" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 12:06 AM
Subject: [freesci-develop] Re: SQ3 bug
> On Thu, Jul 19, 2001 at 10:19:03PM +0930, Alex Angas wrote:
> > :-( No, problem is back. As soon as I type something to command Roger,
same
> > thing happens.
> > Line 421: *(Uint32*)pixel = color;
> > The pointer 'pixel' points into the ether / is invalid.
>
> > Call stack:
> > lineColor2(SDL_Surface * 0x00844e20, short 598, short 338, short 598,
short
> > 401, unsigned int 0) line 421 + 6 bytes
>
> Okay, this is odd. So I didn't get the range checks right? Grrr.
>
> Does it happen when scaling is set to 1x1?
>
> - Pizza
> --
> Solomon Peachy pizzaATfucktheusers.org
> I ain't broke, but I'm badly bent. ICQ# 1318344
> Patience comes to those who wait.
> ...It's not "Beanbag Love", it's a "Transanimate Relationship"...
>