Article View: borland.public.cppbuilder.nativeapi
Article #7427Re: Out of memory from AnsiString
From: Bruce Salzman
Date: Mon, 07 Feb 2005 19:30
Date: Mon, 07 Feb 2005 19:30
19 lines
1809 bytes
1809 bytes
"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:
<4207c131$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4207beea$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 From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <4207beea$1@newsgroups.borland.com> Subject: Re: Out of memory from AnsiString Date: Mon, 7 Feb 2005 13:30:35 -0600 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 24.94.231.89 Message-ID: <4207c131$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107804465 24.94.231.89 (7 Feb 2005 11:27:45 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail