From: "Brian Smith" Newsgroups: comp.os.msdos.djgpp Subject: prog fails when run twice Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <5zKt7.4503$qi.745588@news2-win.server.ntlworld.com> Date: Sun, 30 Sep 2001 20:36:49 +0100 NNTP-Posting-Host: 62.252.231.243 X-Complaints-To: abuse AT virgin DOT net X-Trace: news2-win.server.ntlworld.com 1001878849 62.252.231.243 (Sun, 30 Sep 2001 20:40:49 BST) NNTP-Posting-Date: Sun, 30 Sep 2001 20:40:49 BST Organization: Virgin Net Usenet Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have a game prog I have written in C++ and ASM. It involves large graphics files and small 'spites like' objects. The graphic are constructed in a mem block set up by malloc. All changes (moves etc) are completed here then the whole file is copied to the vidoe memory. a 'newly complied' program runs fine but when it is run again, with compling, the 'sprite' positions are wrong (out of position). I have checked the 'FREE' command and this matches exactly the MALLOC allocations. Any other idears??