Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception calling Diagram.LoadFromStream(stream) (Read 2214 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Exception calling Diagram.LoadFromStream(stream)
Jan 13th, 2021 at 10:18am
Print Post  
I am getting an "Unable to read beyond the end of a stream" exception when calling Diagram.LoadFromStream().  I'm guessing that maybe there was something wrong with the Diagram when it was saved, although no exception was reported.  Is there anyway I can find out what that problem with the Diagram is?

This is a customer's file and although the problem is rare I am sure we have had this problem before, so we are very keen to get it fixed.

Regards
DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Exception calling Diagram.LoadFromStream(stream)
Reply #1 - Jan 13th, 2021 at 10:36am
Print Post  
There isn't unless you trace the code using a debug build. Please attach the file and we'll inspect.

If you save any custom Tag objects along with the diagram items by implementing ISerializable, make sure they read as may bytes as were written in any possible execution path.

The file could also get corrupted due to incomplete network transfer, file system errors and such.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: Exception calling Diagram.LoadFromStream(stream)
Reply #2 - Jan 13th, 2021 at 2:26pm
Print Post  
File is too large to attach to this post. Do you have an email I can send it to?

DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Exception calling Diagram.LoadFromStream(stream)
Reply #3 - Jan 13th, 2021 at 2:41pm
Print Post  
support at this website's domain.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint