Re: [fpc-pascal]FPC Problem with reAllocMem...

2003-02-11 Thread Anton Tichawa
Hello, James! You have to allocate memory BEFORE storing data there, i. e. you should change datanick.pas lines about 63 .. 66 from: nicks[nNicks] := TNick.init(nick, hops, signon, ident, host, server, unused, name); {getMem(nicks, sizeOf(TNick) * nNicks);} inc(nNicks); reAllocMem(ni

Re: [fpc-pascal]FPC Problem with reAllocMem...

2003-02-10 Thread James Mills
Another interesting thing to note as well which I think is rather strange... if you change in datanicks.pas lien 65, reAllocMem(nicks, sizeOf(TNick) * nNicks); to getMem(nicks, sizeOf(TNick) * nNicks); It will crash the same way as before, but at the 5th call of addNick cheers James ___