On 02/23/2016 09:42 PM, Dmitry Boyarintsev wrote:
On Tue, Feb 23, 2016 at 9:39 PM, Donald Ziesig <[email protected] <mailto:[email protected]>> 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
[email protected]
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
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to