[Progress Communities] [Progress OpenEdge ABL] Forum Post: How does OnFormClosed() call into a control's OnLoad()?

Status
Not open for further replies.
S

Simon L. Prinsloo

Guest
Good Morning I am in the process of tracing a error. It that used to crash the UI with an error that the .Net was calling into an already deleted object when the form is closed. From another thread on the forum I know that Progress changed the sequence of stuff during disposal/finalisation, in 11.7.4 and installed that in the hopes that it would solve the problem. Now, when I close the Form I get an error message about something that goes wrong in our code (an initialization that happens a second time) with a very weird stack trace, looking like this: OnLoad ...KoineViewerControl at line 48 (C:\Projects\....\KoineViewerControl.r) OnFormClosed ...BaseForm at line 1849 (C:\Projects\...\BaseForm.r) Menu\start.p at line 660 (C:\Projects\...\start.r) Line 660 of start.r is the WAIT-FOR statement of the startup procedure. Line 1849 of BaseForm.r is "SUPER:OnFormClosed (INPUT e)." BaseForm inherits directrly from Progress.Windows.Form. Thus it appears that when BaseForm's OnFormClosed calles into Progress.Windows.Form OnFormClosed(), something goes wrong and we end up in the OnLoad() of the viewer (ultimately a Progress.Windows.UserControl) on the form. Can anybody explain this or does anybody have an idea how to get around this? Regards Simon

Continue reading...
 
Status
Not open for further replies.
Top