[Lazarus] Incompatibility: dynamic array and TStream

Donald Ziesig donald at ziesig.org
Wed Feb 24 03:59:50 CET 2016


On 02/23/2016 09:42 PM, Dmitry Boyarintsev wrote:
> On Tue, Feb 23, 2016 at 9:39 PM, Donald Ziesig <donald at ziesig.org 
> <mailto: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
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Thanks, Dmitry.  I'll try that tomorrow morning.  It's getting late and 
I've been working for 14 hours so far. ;-)

I'll let you know then.

Thanks,

Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160223/e5d247d2/attachment-0003.html>


More information about the Lazarus mailing list