Error on exitting

You have tested TA3D, share your experience /
Vous avez testé TA3D, venez partager votre expérience
Post Reply
User avatar
EvanR
Posts: 46
Joined: Tue Oct 31, 2006 6:24 pm
Location: United States
Contact:

Error on exitting

Post by EvanR » Wed Nov 01, 2006 4:56 pm

I have a fairly recent CVS copy of ta3d and I compiled / ran it with some totally legal TA hpi files. The game runs fine until I try to exit. It freezes up and I get a memory allocation error. Here's the last two lines. Is everyone else getting this error?


freeing memory used for the map
*** glibc detected *** double free or corruption (!prev): 0x0b732ae0 ***

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Wed Nov 01, 2006 6:48 pm

I get this message too but I don't know where it comes from. But I don't get it all the time. Sometimes it works fine and sometimes it doesn't, I can't identify the code which produce this error but I keep working on it.
=>;-D Penguin Powered

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Fri Nov 03, 2006 12:35 am

That's done, it's fixed!! It was a bug in the

Code: Select all

MAP::update_player_visibility
function. I replaced px+x by lx because I needed it to do a check but I forgot replacing it in some 'for', so when a unit was going out it was writing outside the map!!
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests