View previous topic :: View next topic |
Author |
Message |
dsimcha
Joined: 24 Oct 2008 Posts: 16
|
Posted: Mon Jul 19, 2010 10:00 am Post subject: Memory Management |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Jul 20, 2010 2:56 pm Post subject: |
|
|
Memory management isn't all that good, there are for example some objects witch need to be explicitly destroyed. |
|
Back to top |
|
|
dsimcha
Joined: 24 Oct 2008 Posts: 16
|
Posted: Tue Jul 20, 2010 3:41 pm Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jul 21, 2010 12:51 pm Post subject: |
|
|
It's on the todo list. |
|
Back to top |
|
|
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Wed Jul 28, 2010 5:40 am Post subject: |
|
|
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 |
|
|
dsimcha
Joined: 24 Oct 2008 Posts: 16
|
Posted: Wed Jul 28, 2010 1:36 pm Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jul 29, 2010 12:25 pm Post subject: |
|
|
I think all Cairo classes have this problem, also gdk.GC, gdk.Pixbuf and probably more. |
|
Back to top |
|
|
|