F
Frederic Forjan
Hello all,
We have a probleme about COM interop between native C++ and C-Sharp.
OUR application is develop with ATL/C++ and MFC 6.0
We are trying to integrate a third-party component, develop in C# based
on .NET 1.1.
The interop is done thru COM since the interface/contract us was design
to be COM. The provider of this component choose to develop it in C#.
Our applicqtion is like a client/server with this third-party component
- interfaces, callback, notification..
The contract was in fact design in C#, but generate the COM interop DLL
and we are implementing some part like the UI part on our side in C++.
The COM interface are mainly dealing with SAFEARRAY of XMLDocument and
BSTR, but on the .NET side they are using lot of StringBuild and Xml.
But we have detected lot of memory leaks from our side.
Since this component is also use in .NET application and seems there is
at this stage no problem detected on it.
Questions
Do you know if there is some problem in .NET interop wrapper (memory
leaks, some parameters to use..)
Do you have any design pattern to use for us on ATL side or on .NET side
for the garbage collection ?
Do you have any idea for tools or usage to detect where the memory leaks
comes ?
Regards,
Frédéric Forjan
We have a probleme about COM interop between native C++ and C-Sharp.
OUR application is develop with ATL/C++ and MFC 6.0
We are trying to integrate a third-party component, develop in C# based
on .NET 1.1.
The interop is done thru COM since the interface/contract us was design
to be COM. The provider of this component choose to develop it in C#.
Our applicqtion is like a client/server with this third-party component
- interfaces, callback, notification..
The contract was in fact design in C#, but generate the COM interop DLL
and we are implementing some part like the UI part on our side in C++.
The COM interface are mainly dealing with SAFEARRAY of XMLDocument and
BSTR, but on the .NET side they are using lot of StringBuild and Xml.
But we have detected lot of memory leaks from our side.
Since this component is also use in .NET application and seems there is
at this stage no problem detected on it.
Questions
Do you know if there is some problem in .NET interop wrapper (memory
leaks, some parameters to use..)
Do you have any design pattern to use for us on ATL side or on .NET side
for the garbage collection ?
Do you have any idea for tools or usage to detect where the memory leaks
comes ?
Regards,
Frédéric Forjan