Hi Carsten,
Thanks for your hints.
I found in those examples that some objects are never explicitly deleted
while they seem to have no ref counting.
I think these will mislead users and might ignore potential risks.
So I personally suggest OpenSG developers completing these code in demos.
If so, things might be more clear.
Thanks again, Carsten, you are very nice.~~
2009/6/14 Carsten Neumann <[email protected]>
> Hello Jie Liu,
>
> Jie Liu wrote:
> > I create an instance of RenderAction and Navigator by using the 'new'
> > operator,
> >
> > I just wonder, shall I manually delete these objects? like:
> >
> > Navigator* pNavigator = new Navigator;
> > delete pNavigator;
> > I dont know whether there are ref countings for these objects.
>
> yes, there are a few objects that do not use ref counting (e.g. Action
> and its derived types, Navigator, SimpleSceneManager). You can delete
> them when you don't need them any more.
>
> Cheers,
> Carsten
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
--
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users