[Lazarus] Incompatibility: dynamic array and TStream

Dmitry Boyarintsev skalogryz.lists at gmail.com
Wed Feb 24 03:42:37 CET 2016


On Tue, Feb 23, 2016 at 9:39 PM, Donald Ziesig <donald at ziesig.org> wrote:

> 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.
>
> Only one line is wrong, do the following:

Stream.Read(Buf[0], Stream.Size);


thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160223/2b7d423d/attachment-0003.html>


More information about the Lazarus mailing list