Message-ID: <36DACAC2.514D824A@game-master.com> From: Kevin Lang/Ultima Organization: StormTech SoftWare X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: [AL] grabber crashes my entire system References: <19990228 DOT 224058 DOT -138105 DOT 1 DOT andygoth AT juno DOT com> Content-Type: multipart/mixed; boundary="------------690537812C4E13B95F760989" Lines: 65 Date: Mon, 01 Mar 1999 12:13:38 -0500 NNTP-Posting-Host: 207.96.243.211 X-Complaints-To: abuse AT videotron DOT net X-Trace: wagner.videotron.net 920316667 207.96.243.211 (Mon, 01 Mar 1999 14:31:07 EDT) NNTP-Posting-Date: Mon, 01 Mar 1999 14:31:07 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------690537812C4E13B95F760989 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I think I figured it out: in function: int search_sprite_id(ISO_MAP *iso_map, unsigned int id) { int inx; A_SPRITE *temp; temp=iso_map->sprite_list.current; iso_map->sprite_list.current=iso_map->sprite_list.first; do { if (iso_map->sprite_list.current->next!=NULL) { iso_map->sprite_list.current=iso_map->sprite_list.current->next; } } while ((iso_map->sprite_list.current->next!=NULL) || (iso_map->sprite_list.current->id!=id)); if (iso_map->sprite_list.current->next==NULL) { iso_map->sprite_list.current=temp; return 0; } return id; }; I changed the || to && It kept going, causing a memory corruption bug. And there was another bug where create_new_sprite_list wasn't setting ->next and ->previous to NULL. Now I have no crashes (in windows, have to see in dos)!!! -- -=šUltimaš=- WWW: http://www.game-master.com/ultima/ EMAIL: mailto:ultimaATgame-masterDOTcom (anti-spam) ICQ: 12919201 Member and founder of StormTech SoftWare, visit our page today! --------------690537812C4E13B95F760989 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Kevin Lang Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Kevin Lang n: Lang;Kevin org: StormTech SoftWare adr: ;;;;Quebec;;Canada email;internet: ultima AT game-master DOT com x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard --------------690537812C4E13B95F760989--