Re: [AD] Problem with remove_mouse() and video bitmaps.

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


On Wednesday 28 December 2005 14:33, Andrei Ellman wrote:
> I've noticed that if I set the mouse to display on a bitmap created with
> create_video_bitmap(), then if I destroy the video bitmap and call
> remove_mouse(), I can sometimes cause a crash or get my app to pause
> before restoring the desktop resolution.

Because the timer runs asyncronously, the mouse update function can be called 
after the bitmap is destroyed, but before the mouse is removed. In such a 
case, the timer function would try to read from/write to an invalid memory 
address.




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