🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3541

TFileStream "Out of memory while expanding memory stream"

#3541
From: Devon Harbaugh
Date: Mon, 22 Aug 2005 21:44
14 lines
1728 bytes
I am using a TIdHTTP component to post an XML document to a private server 
using SSL. The server returns an XML document that ranges between 1 and 17 
KB. However when a 17 KB document is returned, the POST fuction throws 
EStreamError with "Out of memory while expanding memory stream" after 
receiving about 95% of the file. Using both TMemoryStreams and TFileStreams 
raise the same exception. The only thing I have found that prevents the 
exception from being thrown is to change the SSLOptions->Method property of 
my TIdSSLIOHandlerSocket object to "sslvSSLv2". When a smaller document is 
requested, the POST completes successfully regardless of what I have set the 
SSLOptions->Method property to. Any ideas on what's going on? I'm using Indy 
9.0.17 with BCB 6 on WinXP.

Thanks
Devon 
Technical Details
Message-ID: <430a4733$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b7833068dba293ad,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Devon Harbaugh" <dharbaugh@laptopsetc.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TFileStream "Out of memory while expanding memory stream"
Date: Mon, 22 Aug 2005 15:44:42 -0600
Lines: 16
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: 71.35.255.70
Message-ID: <430a4733$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124747059 71.35.255.70 (22 Aug 2005 14:44:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail