Re: g_object_new shared memory

2009-10-28 Thread Tim Janik
On Tue, 27 Oct 2009, Hieu Le Trung wrote: Hi, I've posted this through gtk-app-devel list but no good response. So that I'm doing cross post here. Please don't, this list is for discussing development of the glib and gtk+ libraries, not applications using it. I wonder if we can do it with

g_object_new shared memory

2009-10-26 Thread Hieu Le Trung
Hi, I'm using GLib in my application, and I'm using g_object_new to allocate memory of an object. As in C++ specification, there is new placement technique that can allow us to place a new object into our predefined memory region. And we can also do with malloc by redefine the malloc fuction. I

Re: g_object_new shared memory

2009-10-26 Thread David Nečas
On Mon, Oct 26, 2009 at 05:09:42PM +0700, Hieu Le Trung wrote: I'm using GLib in my application, and I'm using g_object_new to allocate memory of an object. As in C++ specification, there is new placement technique that can allow us to place a new object into our predefined memory region. And

RE: g_object_new shared memory

2009-10-26 Thread Hieu Le Trung
On Monday, October 26, 2009 5:22 PM, David Nečas wrote: On Mon, Oct 26, 2009 at 05:09:42PM +0700, Hieu Le Trung wrote: I wonder if we can do it with g_object_new or not? The purpose is to have g_object_new to allocate memory on my own memory region. I don't think it's possible because

g_object_new shared memory

2009-10-26 Thread Hieu Le Trung
Hi, I've posted this through gtk-app-devel list but no good response. So that I'm doing cross post here. Here is my situation. I'm using GLib in my application, and I'm using g_object_new to allocate memory of an object. As in C++ specification, there is new placement technique that can allow us