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
|
Hi , I just implemented Dynamically adding Connection points feature in my diagram nodes. After that i started to get IndexOutOfRangeException when opening the saved diagram. I guess FromIndex or ToIndex of Connection data that is seen in serialized connection xml causes this exception. <Connection ID="044a212b-3e1b-47a9-86a7-cc73adc2e7cd" From="139b9679-88b3-48b8-99f6-ca7c27b26a38" FromIndex="2" But I dont know how to solve or what is the problem. I am deciding to add new connection points at runtime by looking the connection counts of connection points. if all outbound connection points has at least one connection then i add new connection point. Also this logic runs when deserializing diagram but it causes index out of range exception. |
|
|
Hello Would you be able to send us a small sample showing this problem? I should be able to find a solution by looking at exactly how you are adding more connection points and how you are currently handling deserialization. If you can send a sample, either send it in a forum post, or send it to jason@mindscape.co.nz cheers |
|
|
I changed the logic . Instead of adding more connection points , I enabled one connection point to have multiple connections. and the error gone. |
|
|
It would be really useful if you could post how you changed the connection points to have multiple connections. Many thanks, |
|
|
public class IndexedConnectionPoint : OutboundConnectionPoint {
|
|
|
sorry for this ugly post :( , but it is true |
|