Re: error allocating memory with realloc(). how can i increase max_allowed in the system?

2008-08-20 Thread Derek Taylor
On Tue, 12 Aug 2008, Jordi Moles Blanco wrote: >Hi, > >i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code >i'm writing. In addition to the other comments already given, I think that it might be useful for your learning experience to have some additional comments. >I've had s

Re: error allocating memory with realloc(). how can i increase max_allowed in the system?

2008-08-12 Thread Wojciech Puchar
realloc(missatge, midataula * sizeof(char)); should be missatge=realloc(missatge, midataula * sizeof(char)); ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send

Re: error allocating memory with realloc(). how can i increase max_allowed in the system? [solved]

2008-08-12 Thread Giorgos Keramidas
On Tue, 12 Aug 2008 18:22:21 +0200, Jordi Moles Blanco <[EMAIL PROTECTED]> wrote: > Hello, > thank you very much for your time and help, i had completely > misunderstood how realloc() works. You are welcome, of course :-) ___ freebsd-questions@freebsd.

Re: error allocating memory with realloc(). how can i increase max_allowed in the system? [solved]

2008-08-12 Thread Jordi Moles Blanco
Hello, thank you very much for your time and help, i had completely misunderstood how realloc() works. i though i was able to write some C code but now i feel a complete newbie, hehehe. anyway... that made everything clear to me and now my script is working like a charm. thanks for every

Re: error allocating memory with realloc(). how can i increase max_allowed in the system?

2008-08-12 Thread Giorgos Keramidas
On Tue, 12 Aug 2008 17:02:43 +0200, Jordi Moles Blanco <[EMAIL PROTECTED]> wrote: > Hi, > > i'm running a FreeBSD 7.0 amd64 machine and struggling with some C > code i'm writing. > > I've had some trouble with this home-made script as it keeps crashing > while launching a "realloc()" call. > > I n

error allocating memory with realloc(). how can i increase max_allowed in the system?

2008-08-12 Thread Jordi Moles Blanco
Hi, i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code i'm writing. I've had some trouble with this home-made script as it keeps crashing while launching a "realloc()" call. I narrowed down the problem and here i'm sending you a short example of code that crashes: **