View previous topic :: View next topic |
Author |
Message |
mwe
Joined: 08 Dec 2005 Posts: 15
|
Posted: Thu Oct 19, 2006 8:51 pm Post subject: Possible issue with VirtualTree 3.1.3 Dispose |
|
|
It seems that VirtualTree 3.1.3 does not unregister with events on objects when using ObjectBinding when disposing. After having been disposed the tree still gets called when there is a change on an object that it has been bound to, resulting in an exception since the tree thows an exception having been disposed. _________________ Kind regards
Magnus Werner, System Architect
------------------------------------------
Saab Training Systems AB |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Oct 20, 2006 4:27 am Post subject: |
|
|
We haven't seen this issue with any of our testing. Any chance you could send us a sample project that illustrates the problem? _________________ Infralution Support |
|
Back to top |
|
|
mwe
Joined: 08 Dec 2005 Posts: 15
|
Posted: Fri Oct 20, 2006 6:24 am Post subject: |
|
|
I'll try to isolate it enough to send you an example. _________________ Kind regards
Magnus Werner, System Architect
------------------------------------------
Saab Training Systems AB |
|
Back to top |
|
|
mwe
Joined: 08 Dec 2005 Posts: 15
|
Posted: Tue Nov 07, 2006 3:58 pm Post subject: |
|
|
I did some breif research on this issue and came to the following conclusion. When VirtualTree has been disposed then DataSource is still pointing to whatever it was bound to. If this something fires events the disposed tree will get those notifications.
A good thing I.M.H.O. would be to add the row
DataSource = null;
in the protected override void Dispose(bool disposing) method.
If I null out the DataSource then the tree won't get called after having been disposed. _________________ Kind regards
Magnus Werner, System Architect
------------------------------------------
Saab Training Systems AB |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Nov 07, 2006 10:25 pm Post subject: |
|
|
Yes - you are right. The Dispose method is missing this. We will fix this in the next release. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Nov 20, 2006 4:55 am Post subject: |
|
|
This issue has now been fixed in Version 3.2.0 _________________ Infralution Support |
|
Back to top |
|
|
|