OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Objects not released


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU]
View previous topic :: View next topic  
Author Message
danoo
Appreciator


Joined: 16 Dec 2011
Posts: 146

PostPosted: Wed Dec 19, 2012 7:32 am    Post subject:
Objects not released
Reply with quote

Hi all

I'm trying to track down some memory leaks in my application which uses osgPPU.

I noticed a difference between the following two methods of cascading units:

- When I cascade units through childUnit->setInputToUniform(parentUnit, ...), then the units seem to have a object reference that is not correctly unref'd, therefore unit is not released.
- When I cascade units through the parentUnit->addChild(childUnit) method, and add the texture uniforms in the ShaderAttribute, then everything works correctly.

I decided to use the second solution, although I find the first one nicer...
Anybody else observered memory leaks?

Thank you!

Cheers,
Daniel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Could not find plugin to load objects sdef General [3rdparty] 1 Sat Oct 27, 2018 6:10 am View latest post
No new posts OpenSceneGraph-3.6.2 released! robertosfield General 0 Fri Jun 29, 2018 10:28 am View latest post
No new posts Draping polygons on existing objects ... hartwigw General 0 Thu Apr 05, 2018 10:35 pm View latest post
No new posts OSG-3.6 breaking changes to GLES2 buf... kornerr General 3 Fri Mar 23, 2018 8:48 am View latest post
No new posts export to wavefront (obj) of line obj... MNicke General 0 Tue Dec 05, 2017 4:18 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP