Kbase P178162: Hidden .NET dialogs cannot be made visible again because the dialog has been disposed
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/30/2010 |
|
Status: Unverified
SYMPTOM(s):
Hidden .NET dialogs cannot be made visible again because the dialog has been disposed
In the FormClosing event the e:Cancel property is set to True and the :Hide() method is called for the .NET dialog so it can be quickly reused
OpenEdge 10.2B0206
FACT(s) (Environment):
OpenEdge 10.2A
OpenEdge 10.2B
Windows
CAUSE:
Starting with the OpenEdge 10.2B0206 hotfix we now automatically call Dispose() for .NET dialog boxes once the ShowDialog() method returns. This behavior change was made because the default behavior in .NET is to hide dialogs under the assumption that they will be reused and this was causing memory leak issues.
FIX:
If you do not want the automatic Dispose behavior use the -nodialogdispose startup parameter but be aware that this means you will have to manually call Dispose() against .NET dialogs in order to ensure that they are deleted and the memory is recaptured