Hi All,
My application has an EXE and several BPLs.
I have a unit implementing FormManager to keep track of all the opened forms in EXE. And this FormManager class implements SINGLETON pattern, which means only has ONE instance, and provide a global point of access to it. And this FormManager is created only ONCE in EXE and NEVER in BPLs.
BPLs can access this FormManager object perfectly, BUT whatever data BPLs insert, the EXE cannot see it and vice versa.
Seems like EXE and BPLs have different copy of FormManager. But I did not create FormManager object in any of the BPLs. I just "uses" it only in BPLs.
Any idea?
Thanks.
regards,
CM
My application has an EXE and several BPLs.
I have a unit implementing FormManager to keep track of all the opened forms in EXE. And this FormManager class implements SINGLETON pattern, which means only has ONE instance, and provide a global point of access to it. And this FormManager is created only ONCE in EXE and NEVER in BPLs.
BPLs can access this FormManager object perfectly, BUT whatever data BPLs insert, the EXE cannot see it and vice versa.
Seems like EXE and BPLs have different copy of FormManager. But I did not create FormManager object in any of the BPLs. I just "uses" it only in BPLs.
Any idea?
Thanks.
regards,
CM