Hi,
I need to copy a COM object. This COM object is a sourceless third party dll.
The problem that I am having is that all objects of this sort (table of contents object) should be stored in an ArrayList for later modification. The problem is however that when I use the elements in the ArrayList they are all the same. My conclusion was that all ArrayList contains is the last reference past to it and not true copies.
Is there a way to resolve this problem to the ArrayList can contain different table of contents objects. I'll have to do it without changing the code of the COM dll.
Kind regards,
Ritter63
I need to copy a COM object. This COM object is a sourceless third party dll.
The problem that I am having is that all objects of this sort (table of contents object) should be stored in an ArrayList for later modification. The problem is however that when I use the elements in the ArrayList they are all the same. My conclusion was that all ArrayList contains is the last reference past to it and not true copies.
Is there a way to resolve this problem to the ArrayList can contain different table of contents objects. I'll have to do it without changing the code of the COM dll.
Kind regards,
Ritter63