You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
I use acadsharp to read dwg files and do some process like dxf files on it.
my code:
using (MemoryStream ms = new MemoryStream())
{
using (DxfWriter writer = new DxfWriter(ms, doc, false))
{
writer.OnNotification += onNotification;
writer.Write();
}
}
it get error : Cannot access a closed Stream.
what should I do?
The text was updated successfully, but these errors were encountered:
As @Revan1985 pointed out your piece of code seems to be incomplete for us to help, but for what you are saying you are trying to read information from a closed Stream, if that's the case try to create a copy of the same stream:
I've also noticed that the writer closes the stream even if the CloseStream flag is set to false, I'll open a branch to fix it, in the mean time the code that I've provided should help.
hi
I use acadsharp to read dwg files and do some process like dxf files on it.
my code:
using (MemoryStream ms = new MemoryStream())
{
using (DxfWriter writer = new DxfWriter(ms, doc, false))
{
writer.OnNotification += onNotification;
writer.Write();
}
}
it get error : Cannot access a closed Stream.
what should I do?
The text was updated successfully, but these errors were encountered: