Re: Allocating memory in unix vs. windows

From: Jake Turner (jakehturner@hotmail.com)
Date: 03/20/01


Ok, well this is the code...

########################################################################

                   if(!olm)
                   {
                        CREATE(new_lm, struct ocean_land_mark_data, 1);
                        new_lm->name = str_dup("Some land");
                        new_lm->symbol = str_dup("&g#&n");
                        new_lm->navigable = FALSE;
                        new_lm->number = (last_lm->number + 1);
                        new_lm->to_room = NOWHERE;
                        new_lm->x = x;
                        new_lm->y = y;
                        new_lm->next = NULL;
                        last_lm->next = new_lm;
                        GET_OLC_LAND_MARK_TARG(ch) = new_lm;
                  }
                  else
                        GET_OLC_LAND_MARK_TARG(ch) = olm;


################################################################


It's bascially the OLC part to some new ocean code ive added, it seemed to
be working fine, but now crashes when i try to create a new 'landmark' with
perticular x, y co-ordinate in the ocean map.

Windows finds no problems, and carries on as normal but unix bails out.

Any ideas? :)

Culhaven (telnet://mercator.mudhaven.com:2411)

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST