Hi Senthil,

Senthil wrote:
>
> Hi ,
>
> I am using the following statement to load a file.
>
> NodePtr scene = SceneFileHandler::the().read(“test.wrl”).
>
> How to clean the scene memory before loading the another file.
>
> Ie, is it possible to delete the memory of scene node manually.
>
subRefCP(scene); works, but a better way is to use

NodeRefPtr scene = SceneFileHandler::the().read(“test.wrl”);

Whenever you assign a new value to scene, the old one will be deleted. 
No need to manually do what the system can do itself. ;)

Yours

Dirk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to