Article View: borland.public.cppbuilder.nativeapi
Article #7428Re: Out of memory from AnsiString
From: tasoft
Date: Mon, 07 Feb 2005 19:49
Date: Mon, 07 Feb 2005 19:49
25 lines
2032 bytes
2032 bytes
Thanks for the tip TASoft " Bruce Salzman" <bruce@nospam.org> schrieb im Newsbeitrag news:4207c131$1@newsgroups.borland.com... > > "tasoft" <anders@tasoft.org> wrote in message > news:4207beea$1@newsgroups.borland.com... > > > > I'm working on an application running different background threads > > to collect data from various sources and to store it into a common > > database. This works fine for a while, but then I get an OutOfMemory > > exception if a background thread tries to assign a value to an > > AnsiString. I tried to reserve space for the string with SetLength, > > but this does not work. Every time an assignment to an AnsiString > > tries to collect new memory and sometimes it fails, even if their is > > enough memory. > > AnsiString is part of the VCL, not the native API. There are problems > when using VCL objects in multiple threads. Try asking in > borland.public.cppbuilder.vcl.components.using > > -- > Bruce > >
Technical Details
Message-ID:
<4207c66b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.euro.net!fi.sn.net!newsfeed2.fi.sn.net!newsfeed.bahnhof.se!ltu.se!luth.se!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4207beea$1@newsgroups.borland.com> <4207c131$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cac6707f4af74d2e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "tasoft" <anders@tasoft.org> From: "tasoft" <anders@tasoft.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <4207beea$1@newsgroups.borland.com> <4207c131$1@newsgroups.borland.com> Subject: Re: Out of memory from AnsiString Date: Mon, 7 Feb 2005 20:49:54 +0100 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 193.159.33.212 Message-ID: <4207c66b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107805803 193.159.33.212 (7 Feb 2005 11:50:03 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.euro.net!fi.sn.net!newsfeed2.fi.sn.net!newsfeed.bahnhof.se!ltu.se!luth.se!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail