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 Shadows on "invisible" objects Trajce Nikolov NICK General 0 Tue Mar 28, 2017 7:09 am View latest post
No new posts 3rdParty package precompiled with Vis... zonk Announcement [ANN] 0 Wed Mar 22, 2017 3:51 pm View latest post
No new posts Free Android game based on OSG & ... kornerr Announcement [ANN] 1 Fri Feb 03, 2017 1:56 pm View latest post
No new posts New 3rdParty precompiled package for ... zonk Announcement [ANN] 4 Sat Oct 22, 2016 4:29 pm View latest post
No new posts How to group many objects so that the... BoraDrljaca General 0 Mon Aug 22, 2016 3:38 am 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