+1 800 256 3608 (toll-free in North America) or +49 7531 9060-10| service@combit.com

MemoryStream exception in Designer

I have store a .lst project into database like:

ListLabel LL = new ListLabel();
LL.DataSource = CreateDataSet();
byte[] report = GetReportFromDatabase();
MemoryStream memStream = new MemoryStream(report);
LL.Design(LlProject.List, memStream);

But when I made some modification of the project using the Designer, when I close it an exception occurs:

“Memory Stream is not expandable”

and the modifications are not saved.
Which could be the issue? How can I solve it?


A MemoryStream over a byte array is not expandable indeed. See this StackOverflow post for a number of possible fixes :slight_smile::

Thanks, I solved it using
var memStream = new MemoryStream(0)
initialized to 0, then it can be extended.

1 Like

© combit GmbH