Re: [osg-users] Reference count catcher?

2009-08-20 Thread Ufuk
Hi Chris Gordon,i did not know visual studio has an ability like that. i believe i don't know how to use visual studio.. i realized that there are many features that i did not know especially about these breakpoints. Hi Jean-Sebastian, thank you for your answer.. i will search the previous posts

[osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
i have an osg::Geometry. i store it in a class with ref_ptrwhen i delete it, i expect it to be deleted. in debug, i saw that the reference count is 2 before this destructor. even if i set this value to null, there reference count remains 1. so it is not deleting... what i want to ask is, how can

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ismail Pazarbasi
2009/8/19 Ufuk ufuk@gmail.com: i have an osg::Geometry. i store it in a class with ref_ptr when i delete it, i expect it to be deleted. in debug, i saw that the reference count is 2 before this destructor. even if i set this value to null, there reference count remains 1. so it is not

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
Hi Ismail,thanks for the advice.. i think what you tell probably works but it is very long process... i already thought this but i wanted to try my chance here for an easier way.. these recompiling stuff is not easy for me now... anyway there should be an easier way? if i cant find an easier way,

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Daniel Trstenjak
Hi Ufuk, anyway there should be an easier way? if i cant find an easier way, i definitely try what you have said.. Set a watchpoint on the memory address of the _refCount member of this particular geometry object. Greetings, Daniel --

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ümit Uzun
Hi Ufuk; As I know, If you create a new object with using ref_ptr, object's default ref_ptr should be initialized to 1. And after you have attached it to your scene, ref_ptr count gets 2. And after you delete your geometry from your scene graph ref count gets 1 again. And then this ref_ptr object

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
Hi Daniel, Set a watchpoint on the memory address of the _refCount member of this particular geometry object. your idea seems very good but i don't know how to watch a specific memory address in visual studio. if you know could you tell me because i could not find. Hi Ümit, actually i

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Tomlinson, Gordon
Sent: Wednesday, August 19, 2009 7:50 AM To: OpenSceneGraph Users Subject: [osg-users] Reference count catcher? i have an osg::Geometry. i store it in a class with ref_ptr when i delete it, i expect it to be deleted. in debug, i saw that the reference count is 2 before this destructor. even if i

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
__ -- *From:* osg-users-boun...@lists.openscenegraph.org [mailto: osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Ufuk *Sent:* Wednesday, August 19, 2009 7:50 AM *To:* OpenSceneGraph Users *Subject:* [osg-users] Reference count catcher? i have an osg::Geometry

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Daniel Trstenjak
if you know could you tell me because i could not find. google's your friend: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/0ce702d6-5428-4b9b-8113-7fa3afe5b66f --

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
Hi Daniel, thanks for link. i searched but all i found was normal debugging and breakpoints... it really useful for me. i did not know such an ability of visual studio. i will try to use this way... --- Hi Ümit, maybe you are right about being cool... i realized that the destructor of my

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ümit Uzun
Hi Ufuk; I am sure this working way is true, because Paul Martz had written a mail about rep_ptr's working mechanism and in this mail, he had talked about ref_ptr's automatic destruction in suitable time when realize related object's unnecessity for working program but I can't find this mail

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Ufuk
Hi Ümit,thank you for your attention.. :) actually i didn't know that it is deleted on suitable time. i always expected it to be deleted when i set to NULL. it is good to learn something today :) thanks again... On Wed, Aug 19, 2009 at 5:01 PM, Ümit Uzun umituzu...@gmail.com wrote: Hi Ufuk;

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Chris Denham
objects may create temporary ref ptr objects as the array is reallocated. It does work.. just tried it in VS2005. Cheers. Chris. Date: Wed, 19 Aug 2009 16:36:58 +0300 From: Ufuk ufuk@gmail.com Subject: Re: [osg-users] Reference count catcher? To: OpenSceneGraph Users osg-users

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Chris Denham
counted objects may create temporary ref ptr objects as the array is reallocated. It does work.. just tried it in VS2005. Cheers. Chris. Date: Wed, 19 Aug 2009 16:36:58 +0300 From: Ufuk ufuk@gmail.com Subject: Re: [osg-users] Reference count catcher? To: OpenSceneGraph Users osg-users

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Tomlinson, Gordon
__ -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris Denham Sent: Wednesday, August 19, 2009 12:13 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Reference count catcher? Of course you spotted

Re: [osg-users] Reference count catcher?

2009-08-19 Thread Jean-Sébastien Guay
Hi Ufuk, thank you for your attention.. :) actually i didn't know that it is deleted on suitable time. i always expected it to be deleted when i set to NULL. Perhaps it's as simple as: the render back-end had a ref_ptr to your geometry because it was busy rendering it. So when you set your