| View previous topic :: View next topic |
| Author |
Message |
Topprolmc Guest
|
Posted: Sun Sep 18, 2005 9:51 pm Post subject: TMemoryStream in ISAPI.... |
|
|
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
|
Posted: Mon Sep 19, 2005 1:12 pm Post subject: Re: TMemoryStream in ISAPI.... |
|
|
No, I use it all the time.
|
|
| Back to top |
|
 |
Nick Hodges [TeamB] Guest
|
Posted: Mon Sep 19, 2005 2:50 pm Post subject: Re: TMemoryStream in ISAPI.... |
|
|
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
|
Posted: Tue Sep 20, 2005 7:52 pm Post subject: Re: TMemoryStream in ISAPI.... |
|
|
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 |
|
 |
|