This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Thread error with large buffer
- To: "'Gary Thomas'" <gthomas at redhat dot com>
- Subject: RE: [ECOS] Thread error with large buffer
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Fri, 20 Jul 2001 08:28:22 -0600
- Cc: "'eCos mailing list'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
>
> On 19-Jul-2001 Trenton D. Adams wrote:
> > Below is the thread. It doesn't give the error above if the
buffer
> > variable is 400. Anyone have any ideas why this might be? Surely
a
> > static buffer of 4K is not un-reasonable?
>
> It's not static - it's on the thread's stack. You can make it
> static (include the keyword) or make the thread stack larger.
When I said static I meant not dynamically allocated by me with malloc
or something. Obviously it's not static since I didn't specify the
static keyword.