This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: AW: probably simple problem: ASSERT in Cyg_StdIostream
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Manfred W?lfel <manfred dot woelfel at web dot de>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 25 Apr 2006 09:33:24 +0200
- Subject: Re: [ECOS] AW: probably simple problem: ASSERT in Cyg_StdIostream
- References: <444DB6F4.8070900@web.de>
On Tue, Apr 25, 2006 at 07:43:16AM +0200, Manfred W?lfel wrote:
> In the case of buffered IO, the constructor of Cyg_StdioStream
> constructs a Cyg_StdioStreamBuffer object io_buf. The constructor of
> Cyg_StdioStreamBuffer calls Cyg_StdioStreamBuffer::set_buffer that may
> fail for lack of memory. The returned error is silently ignored in the
> constructor of Cyg_StdioStreamBuffer. In this case the constructor of
> Cyg_StdioStream gives up, before the magic value is set.
So what are you suggesting? What is the fix? Could you provide a
patch?
Thanks
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss