public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: imran khan <imran.eie.85@gmail.com>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] Re: Query about dynamic memory allocation
Date: Wed, 16 Aug 2006 11:01:00 -0000	[thread overview]
Message-ID: <44E2FB06.8070301@mlbassoc.com> (raw)
In-Reply-To: <9fd2524e0608160224g15099746k59fa0a1b536cb4a9@mail.gmail.com>

imran khan wrote:
> 
> 
> 
> 
> Sir,
>   I am trying to allocate stack for a thread dynamically before making 
> call to cyg_thread_create() for creating the thread
>   but malloc is not working for 500 or more no. of bytes and the machine 
> gets hanged whenever malloc () is called.
>  I have tried changing the main STACK_SIZE with no luck.
>  I m working on synthetic target at present . I even tried with 
> mallinfo() call.
>  I made mallinfo() call before making a call to malloc() and it showed 
> 3356480 as the value of "mallinfo.maxfree"and
> even after calling mallinfo() after making a call to malloc() it showed 
> the same value of mallinfo.maxfree.
> So where from malloc() is allocating memory and how can I make malloc() 
> work properly for my purpose which I have mentioned at the start of the 
> mail.
> Plz, help me out of this problem.

First of all, if you need help with eCos, ask on the mailing list.
There are many folks there that can help and everyone benefits from
the discussion.  Private assistance is only available with a support
contract.

Now, to your problem.  You've not provided any real information on
what's going wrong other than it's not working.  Before I (or anyone)
can help, there are many pieces of data required:
   * How did you configure eCos?
   * Have you run any programs?  especially the tests?
   * Your program seems simple enough - maybe you can just share it?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

           reply	other threads:[~2006-08-16 11:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <9fd2524e0608160224g15099746k59fa0a1b536cb4a9@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44E2FB06.8070301@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=imran.eie.85@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).