<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/23/2016 09:42 PM, Dmitry
Boyarintsev wrote:<br>
</div>
<blockquote
cite="mid:CAMpTZrfn1m5XSD=Z4GtYioyyqjAk6Gjhnb4gPeazmeH02+dN2Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Tue, Feb 23, 2016 at 9:39 PM,
Donald Ziesig <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:donald@ziesig.org" target="_blank">donald@ziesig.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I am
trying to read the contents of a memory stream into a
dynamic array of characters and the program keeps crashing
when I try to free the dynamic array.<br>
<br>
</blockquote>
<div>Only one line is wrong, do the following: </div>
<div><br>
</div>
<div>Stream.Read(Buf[0], Stream.Size); </div>
<div><br>
</div>
<div><br>
</div>
<div>thanks,</div>
<div>Dmitry</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
Thanks, Dmitry. I'll try that tomorrow morning. It's getting late
and I've been working for 14 hours so far. <span
class="moz-smiley-s3"><span> ;-) </span></span><br>
<br>
I'll let you know then.<br>
<br>
Thanks,<br>
<br>
Don<br>
</body>
</html>