General "Component Already Exists" Question
Posted on 2006-04-04
We have a customer who is using an app written in Delphi5. Although I don't know exact numbers,
it is a very large app that is RAM intensive. We have thousands of users with this app and none
have had this problem but this one user. She says she is using XP with 1000 KB RAM.
The user says she is getting an error message of "A component named MyEditDlg already exists" from
the app. It can happen after the first "edit" or go for days with no problems at all. This
component is called from several places, but she is only calling it from one specific location.
The component is called via:
Execute //where "Execute := ShowModal=mrOk"
The user claims that if she closes the app and restarts it the error message still occurs. She
also claims that if she reboots the computer it may or may not still occur.
I am hoping with your expertise you can give me some direction on how this can be happening.
I understand from research the error message is from the component not being released before it
is called again. I just don't see how this can be from the above code, nor can I understand how
rebooting wouldn't get rid of the problem. Is there a difference between completely shutting
down the computer and doing a restart versus a reboot. Is there any way this error could occur from
insufficient memory on her computer?
I realize this is quite a general question but I am hoping someone can give me some insight on
this problem (so I can get some sleep!)
As always, Thanks.