Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Thanks Sergey. I found that too. The problem was that the a core lib was keeping a ref_ptr of an Object allocated by a plugin from a dll. Then on clean I got this problem. I solved it by changing the ref_ptr to observer_ptr in the core lib. So I am good now. But BIG thanks for helping me. Ulrich,

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Ulrich Hertlein
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Nick, On 28/02/2015 14:46, Trajce Nikolov NICK wrote: I am facing a problem with memory clean-up when mixing the place of allocation across dlls and the executable. Let say I have main executable that loads dlls (plugins) in which I

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Thanks Ulrich. That is what is going on Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or *LIBS* ? Thanks a bunch Nick On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov sergey.fo...@gmail.com wrote: Hi To link against shared libgcc, add -shared-libgcc to link against

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Sergey Kurdakov
Hi To link against shared libgcc, add -shared-libgcc to link against shared libstdc++ add -lstdc++_s Regards Sergey On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Nick, On 28/02/2015 14:46, Trajce

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Hi Sergey, on my system with the latest from the Qt bundle I don't have the libstdc++_s ... only libstdc++.a and libstdc++-6.dll . And I added -lstdc++ and still getting the same issues. Any further hints? Thanks a lot Nick On Sun, Mar 1, 2015 at 1:07 PM, Trajce Nikolov NICK

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Sergey Kurdakov
Hi Nick, after looking some more I found that newer versions of Mingw switch to dynamic linking of libstd++ by default. so libstdc++-6.dll is a right lib. but as you have the same problems then I have no answer. Regards Sergey On Sun, Mar 1, 2015 at 5:16 PM, Trajce Nikolov NICK

[osg-users] referenced memory management across dlls/exe (Windows only)

2015-02-28 Thread Trajce Nikolov NICK
Hi all, I am facing a problem with memory clean-up when mixing the place of allocation across dlls and the executable. Let say I have main executable that loads dlls (plugins) in which I allocate memory using referenced pointers. On exit, those pointers that were allocated in one of the dlls got

Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-02-28 Thread Trajce Nikolov NICK
also I am using Qt Creator and MinGW (whatever the last version is). I know in Visual Studio you can specify the /MD option to use shared CRT libs and to avoid this problem. Any MinGW gurus around with hints? Nick On Sat, Feb 28, 2015 at 2:46 PM, Trajce Nikolov NICK