Re: [AD] WIP is crashing

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In reply to Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>:

[snip - grabber crash in WIP]
>I have tried to compile grabber manually with the following base
>commandline 'gcc -o grabber -g grabber.c plugins/*.c datedit.c xxx' from
>the allegro/tools directory, creating first a symbolic link to
>allegro/obj.
[snip - crashes only for release build]

>What I am doing to crash is just press the arrow down key to visualize the
>first 60x60 rle sprite. I can see for a moment the text "RLE sprite
>(60x60, 8 bit)" and the black box being drawn, but it crashes at that
>point, possibly trying to display the rle sprite. 

OK, you are saying that this most likely happens in the bitmap/RLE
display function. (NB: I cannot reproduce the crash on DJGPP).

>If instead of pressing
>the arrow key, I press the page down key to select the sample, everything
>is allright, until I select an rle sprite again. This seems to happen only
>with bmp and rle sprites; fonts, midis, samples and palettes work ok.

I would suggest you put lots of al_trace() calls inside 
allegro/tools/plugins/datimage.c; maybe you can figure out what is going
wrong. Also, if you comment out the call to actually draw the sprite or
bitmap onto the screen (not the rest of the view function, just the
specific line), then does the grabber continue without crashing? If so,
then you have narrowed down the culprit.

[snip]

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/