Consistent bug in WinGrid\SamplesExplorer

Posted by Thomas Mercer-Hursh on 11-Aug-2008 17:42

So far, every time I have tried opening a sample, closing it, and then opening it again, I get a System.ObjectDisposedException: Cannot access a disposed object. One suspects that this is a case of the object getting cleaned up by garbage collection or even explicitly deleted and then forgetting that one has to do it over again. I don't feel like chasing it down particularly.

FWIW, I appear to have this one all running now ... not sure I have tested every corner, but everything opens and several systematic issues have been addressed. Just a couple more and I will have all samples running from subdirectories under one project.

A couple of the ones in this set were not too exciting ... at least not yet ... but some of them really showed off the impressive capabilities of these controls.

All Replies

Posted by Håvard Danielsen on 12-Aug-2008 11:47

The Beta WinGrid samples have some issues in this area. I'm not exactly sure what state they are in, but check if the FormClosing event in the various UltraGrid samples is implemented as follows:

method _FormClosing (...):

   if valid-object(this-object:Owner) then

   do:

     e:Cancel = true.

     this-object:Visible = false.

   end.

end method.

Message was edited by:

Havard Danielsen

Message was edited by:

Havard Danielsen

This thread is closed