S
steasdale
Guest
Hello Tim / Laura I believe I've fixed the issue. When I did a count of the number of components in the Destructor, using THIS-OBJECT:components:Components:Count, I got the value 2. So when the components are set up, THIS-OBJECT:components = NEW System.ComponentModel.Container(). I found that THIS-OBJECT:components was being referenced 2 times (to binding sources): THIS-OBJECT:bsDestinationStorageLocation = NEW Progress.Data.BindingSource(THIS-OBJECT:components). THIS-OBJECT:bsShippingUnit = NEW Progress.Data.BindingSource(THIS-OBJECT:components). So in the Destructor: MESSAGE "First Count " THIS-OBJECT:components:Components:Count SKIP VIEW-AS ALERT-BOX. The First Count was 2. I then disposed of the 2 binding sources: THIS-OBJECT:bsDestinationStorageLocation
ispose(). THIS-OBJECT:bsShippingUnit
ispose(). MESSAGE Second Count " THIS-OBJECT:components:Components:Count SKIP VIEW-AS ALERT-BOX. The Second Count was zero. So the following command (which was generating the error, which is still in the code is no longer failing as there are no remaining components to dispose of: CAST(components, System.IDisposable)
ispose(). Thanks for your earlier suggestions - but it looks like the disposal of the binding sources has fixed the problem. Steve
Continue reading...
Continue reading...