This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
In some of our diagrams, SizeToFit() method cannot complete the process and ends with SystemOutOfMemory Exception. Also ds.ZoomMode=ZoomMode.SizeToFit option does the same. We think the problem was caused by ds.DiagramBounds.Height value. Somehow it has ds.DiagramBounds = {-170;120;850;752630137618312} value. ds.DiagramBounds.Inflate method does not change the height of the diagram. So there is no way to change height of diagram and it has a huge value. What can we do? Edit: Regardless of whether we call SizeToFit method or not, it has same exception when loading this diagram. |
|
|
Hello Thank you for pointing out this issue. Would you be able to send us a sample that demonstrates this error? With this I will more easily be able to solve the issue. You can zip up the sample and attach it to a forum post, or send it to jason@mindscape.co.nz. It's best to delete any bin and obj folders before sending. Once we find a solution, we can make the fix available as soon as it's ready. Cheers -Jason |
|
|
I am not able to send whole project but i'm adding a xml file which causes this situation. If any other information needed, please write back. |
|
|
Hello Thanks for the test diagram. Unfortunately I am unable to reproduce the issue though. It loads fine at my end (once I change the file to use the built in node types). Would it be possible for you to send us the custom serializer/deserializer you are using? Either attach it to a forum post, or send it to jason@mindscape.co.nz. With this I'll be able to find more clues as to what's going wrong. Cheers Jason Fauchelle |
|