FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Memory Management

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
dsimcha



Joined: 24 Oct 2008
Posts: 16

PostPosted: Mon Jul 19, 2010 10:00 am    Post subject: Memory Management Reply with quote

How does memory management work in gtkD? I seem to be getting a lot of leakage. Is gtkD fully integrated into the D GC, or does one need to care about memory management when using it?

I've noticed that the docs talk a lot about ref counting, but then again the docs talk a lot about the C API in general. My question assumes that you aren't using any of the C API directly, only the D wrappers.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Jul 20, 2010 2:56 pm    Post subject: Reply with quote

Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.
Back to top
View user's profile Send private message
dsimcha



Joined: 24 Oct 2008
Posts: 16

PostPosted: Tue Jul 20, 2010 3:41 pm    Post subject: Reply with quote

Mike Wey wrote:
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.


So can I interpret this as "these will get fixed eventually and unless the leaks are severe they're not worth tracking down/fixing on my end", or is there a fundamental reason why these can't/won't be fixed?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jul 21, 2010 12:51 pm    Post subject: Reply with quote

It's on the todo list.
Back to top
View user's profile Send private message
Mengu



Joined: 21 Mar 2010
Posts: 21

PostPosted: Wed Jul 28, 2010 5:40 am    Post subject: Reply with quote

Mike Wey wrote:
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.


what are these objects?
_________________
mengu.net - some kind of monster
Back to top
View user's profile Send private message
dsimcha



Joined: 24 Oct 2008
Posts: 16

PostPosted: Wed Jul 28, 2010 1:36 pm    Post subject: Reply with quote

Mengu wrote:
Mike Wey wrote:
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed.


what are these objects?


Off the top of my head, cairo.Context and, gdk.GC come to mind. I'm absolutely sure about gdk.GC, less sure about cairo.Context.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jul 29, 2010 12:25 pm    Post subject: Reply with quote

I think all Cairo classes have this problem, also gdk.GC, gdk.Pixbuf and probably more.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group