A
Adrian
Hi,
I have a large unmanaged static C++ library which I've wrapped using a small
C++/CLR DLL. This is called from a C# client application.
The static library has a singleton, however it appears that it is being
instantiated twice. The first instantiation is down to me calling
singleton.instance() in the C++/CLR DLL, the second instantiation is down to
the library internally calling singleton.instance().
I'm relatively new to C++/CLR, is this expected behaviour and is there
anything I can do to work around this?
Thanks,
Adrian
I have a large unmanaged static C++ library which I've wrapped using a small
C++/CLR DLL. This is called from a C# client application.
The static library has a singleton, however it appears that it is being
instantiated twice. The first instantiation is down to me calling
singleton.instance() in the C++/CLR DLL, the second instantiation is down to
the library internally calling singleton.instance().
I'm relatively new to C++/CLR, is this expected behaviour and is there
anything I can do to work around this?
Thanks,
Adrian