🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7426

Out of memory from AnsiString

#7426
From: tasoft
Date: Mon, 07 Feb 2005 19:18
2 lines
1290 bytes
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.
Technical Details
Message-ID: <4207beea$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cac6707f4af74d2e,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "tasoft" <anders@tasoft.org>
Sender: "tasoft" <anders@tasoft.org>
Reply-To: "tasoft" <anders@tasoft.org>
Subject: Out of memory from AnsiString
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 193.159.33.212     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4207beea$1@newsgroups.borland.com>
Date: 7 Feb 2005 11:18:02 -0800
X-Trace: newsgroups.borland.com 1107803882 207.105.83.66 (7 Feb 2005 11:18:02 -0800)
Lines: 3
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail