BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMemoryStream in ISAPI....

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Topprolmc
Guest





PostPosted: Sun Sep 18, 2005 9:51 pm    Post subject: TMemoryStream in ISAPI.... Reply with quote



I have an object i need to save to a memory stream.

After that I save it to a file....The file is always empty.

Any issues with TMemorystream in an ISAPI DLL?
BTW- Delphi 5

--
Topp "The N.P."
'97 FLHRP - "Drifter"
AH#121 HSB#99 BS#35

"Peace Out!",
In Memory of Wench#10, Bitch#20, bs#34, HSB#10C And BOTY IV

Life is a sexually transmitted disease and it's 100% Fatal.
Back to top
Del M
Guest





PostPosted: Mon Sep 19, 2005 1:12 pm    Post subject: Re: TMemoryStream in ISAPI.... Reply with quote



No, I use it all the time.


Back to top
Nick Hodges [TeamB]
Guest





PostPosted: Mon Sep 19, 2005 2:50 pm    Post subject: Re: TMemoryStream in ISAPI.... Reply with quote



Topprolmc wrote:

Quote:
After that I save it to a file....The file is always empty.

How are you saving the TMemoryStream to a file?

My guess is that you are forgetting to rewind the stream before you
save it. Set

MyMemoryStream.Position := 0;

before you do any writing from the stream.

--
Nick Hodges -- TeamB
Lemanix Corporation -- http://www.lemanix.com
Read my Blog -- http://www.lemanix.com/nick

Back to top
James K Smith
Guest





PostPosted: Tue Sep 20, 2005 7:52 pm    Post subject: Re: TMemoryStream in ISAPI.... Reply with quote

Yep. I'll admit I did that once. Just once. Otherwise, streams work fine in
ISAPI dlls as with anything else.

James

"Nick Hodges [TeamB]" <nickhodges (AT) gmail (DOT) com> wrote

Quote:
Topprolmc wrote:

After that I save it to a file....The file is always empty.

How are you saving the TMemoryStream to a file?

My guess is that you are forgetting to rewind the stream before you
save it. Set

MyMemoryStream.Position := 0;

before you do any writing from the stream.

--
Nick Hodges -- TeamB
Lemanix Corporation -- http://www.lemanix.com
Read my Blog -- http://www.lemanix.com/nick



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.