Re: [AD] crash.. destroy_bitmap( a system bitmap );

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


> if normal procedure is to destroy system bitmaps before returning to text
> mode,  can that be documented somewhere near the
>
> \allegro\docs\html\alleg009.html#destroy_bitmap

IMHO, it would be better suited in the entry for set_gfx_mode() than in the
entry for destroy_bitmap(), since it's the act of switching the display mode
that apparently destroys the bitmaps.
I'm not sure that this is a general thing though. It could be peculiar to
DirectX, in which case it should probably be in the Windows specifics section.




the crash does NOT occur during the set_gfx_mode()
it crashes during  destroy_bitmap()

it should go near the destroy_bitmap() docuementation, coz that is where users will look when the crash occurs.

there is no problems with the set_gfx_mode()
i would have no idea to look at that place in the documenation if i had a problem with destroy_bitmap() it is possible to destroy_bitmap() on memory bitmaps after you set_gfx_mode(TEXT).. its just the code within destroy_bitmap() uses a gfx_driver-> ptr which is set to NULL by (i presume) the set_gfx_mode(TEXT) call.


Unless this is a bug, of course.



its sort of is,, and it sort of is not.... if it is to be left as is, then i strongly suggest it gets documented so allegro users can get on with coding instead of relying on a debugger to identify problems, as i have had to.





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