Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible issue with VirtualTree 3.1.3 Dispose

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
mwe



Joined: 08 Dec 2005
Posts: 15

PostPosted: Thu Oct 19, 2006 8:51 pm    Post subject: Possible issue with VirtualTree 3.1.3 Dispose Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5002

PostPosted: Fri Oct 20, 2006 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mwe



Joined: 08 Dec 2005
Posts: 15

PostPosted: Fri Oct 20, 2006 6:24 am    Post subject: Reply with quote

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
View user's profile Send private message
mwe



Joined: 08 Dec 2005
Posts: 15

PostPosted: Tue Nov 07, 2006 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5002

PostPosted: Tue Nov 07, 2006 10:25 pm    Post subject: Reply with quote

Yes - you are right. The Dispose method is missing this. We will fix this in the next release.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5002

PostPosted: Mon Nov 20, 2006 4:55 am    Post subject: Reply with quote

This issue has now been fixed in Version 3.2.0
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group