🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sending BMP over Indy 9

#911
From: Skaarak
Date: Fri, 24 Aug 2007 21:01
21 lines
1797 bytes
>> I set the position to be 0 after the read stream, and I do
>> have a small (very small) portion of the BMP.
>
> Then you are not sending the full BMP to begin with, or you are not
> displaying it correctly after recieving it.  Also keep in mind that the
> server code you showed is not thread-safe, so make sure that no other 
> thread
> is modifying the BMP while it is being stored into the TStream that will 
> be
> sent.

So I made the code thread safe, and it helped, but it looks like whatever
I was doing to show the BMP was failing on the client side.  When I went
just to a normal BMP everything looked great.

Now I'm just running into Canvas drawing errors & out of system resource
errors.  Whee.

Thanks a ton.

-Cory 
Technical Details
Message-ID: <46cf472c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46cdbcc9$1@newsgroups.borland.com> <46cdd181$1@newsgroups.borland.com> <46cdea2e$1@newsgroups.borland.com> <46cdf007@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,76a7f9651a366cc8
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Skaarak" <skaarak@NOakamailSPAM.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46cdbcc9$1@newsgroups.borland.com> <46cdd181$1@newsgroups.borland.com> <46cdea2e$1@newsgroups.borland.com> <46cdf007@newsgroups.borland.com>
Subject: Re: Sending BMP over Indy 9
Date: Fri, 24 Aug 2007 15:01:33 -0600
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 63.231.79.30
Message-ID: <46cf472c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187989292 63.231.79.30 (24 Aug 2007 14:01:32 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail